Created
December 18, 2011 11:19
-
-
Save sai-manoj-kumar/1493062 to your computer and use it in GitHub Desktop.
git commands to create a git locally and then push it to github.com
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 config --global user.name "Your Name" | |
git config --global user.email [email protected] | |
Next steps: | |
mkdir Test | |
cd Test | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin [email protected]:userid/Test.git | |
git push -u origin master | |
Existing Git Repo? | |
cd existing_git_repo | |
git remote add origin [email protected]:userid/Test.git | |
git push -u origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment