Last active
December 21, 2015 19:09
-
-
Save tamboer/6351883 to your computer and use it in GitHub Desktop.
git init create
This file contains hidden or 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
| Git global setup: | |
| git config --global user.name "user" | |
| git config --global user.email "example@example.com" | |
| Create Repository | |
| mkdir new_repo | |
| cd new_repo | |
| git init | |
| touch README | |
| git add README | |
| git commit -m 'first commit' | |
| git remote add origin git@localhost:new_repo.git | |
| git push -u origin master | |
| Existing Git Repo? | |
| cd existing_git_repo | |
| git remote add origin git@localhost:new_repo.git | |
| //-u set upstream for git pull/status | |
| git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment