Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #6 - Portfolio uploader #12

Merged
merged 2 commits into from Nov 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Expand Up @@ -36,6 +36,29 @@ Currently, 'name' can be changed in the template.

**NOTE** : It is continuously updating.

### Upload to Repository([USER_NAME.github.io])

1. Create new repository with the name 'USER_NAME.github.io'. (\*)

2. Copy the repository URL(ex. https://github.com/USER_NAME/USER_NAME.github.io.git). (\*)

3. In the Command Line, move to the root directory of this project(portfolio-generator).

4. Run the following commands :

```bash
./portfolio-uploader.sh
```

5. Enter the repository URL you copied.

6. Enter the github username and password to upload files to repository.
⋅⋅\* If it displays an error, check your repository URL.

(\*) : Replace the USER_NAME with your github account username.

**NOTE** : It is working with empty repository only.

### Template Fields

- {YOUR_NAME}
Expand Down
18 changes: 18 additions & 0 deletions portfolio-uploader.sh
@@ -0,0 +1,18 @@
#!/bin/bash

echo "*** Portfolio Pusher ***"

cd portfolio/

git init

read -p "Enter your repository URL: " repo
git remote add origin $repo

git add .
git commit -m "Update new portfolio"
git push origin master

# echo $repo

cd -