|
|
Line 284: |
Line 284: |
|
| |
|
| Been hacking away on a project and now it's time to unveil it? Here are the quick and easy steps to get your local repo into your GitHub account. | | Been hacking away on a project and now it's time to unveil it? Here are the quick and easy steps to get your local repo into your GitHub account. |
| | |
| | The short version is |
| | |
| | # Go to GitHub.com and create a new repo - but only create a README and/or LICENSE (the less the better). |
| | # Copy the HTTPS "clone" URL (or the SSH one if you have an authorized key on the remote host). |
| | # Go to your remote host where you have developed your code |
| | # git init your project if you haven't already. And also configure git with user.name and user.email |
| | # git add . |
| | # git commit -m 'First commit' |
| | # git remote add the URL from step 2 |
| | # git pull --rebase |
| | # git push |
| | |
| | <br /> |
| <source lang="bash"> | | <source lang="bash"> |
| # first make a "bare" clone | | # first make a "bare" clone |