Created
September 3, 2013 23:27
-
-
Save ksuderman/6430958 to your computer and use it in GitHub Desktop.
How to import an existing project into GitHub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Every time I want to import an existing project into GitHub I have to Google for the instructions. Hopefully this gist will be easier for me to find... | |
1. Create a new repository on GitHub and make note of the URL. The URL will be something like https://github/ksuderman/org.anc.some.project.git (don't forget the .git extension). | |
2. CD to the root on your project source code. | |
3. git init | |
4. git add . (or explicityly specify directories and files to be added). | |
5. git commit -m "Initial code import." | |
6. git remote add origin [URL] (where [URL] is the URL from step one) | |
7. git pull origin master | |
8. git push origin master | |
The new project has now been imported into GitHub. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment