Created
December 19, 2011 18:22
-
-
Save mithun-daa/1498267 to your computer and use it in GitHub Desktop.
Commited new/updated files to git
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
#new branch | |
git checkout -b <branchname> | |
#switch back to master | |
git checkout master |
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
git add . | |
git commit -m "some comment" |
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
#switch to master | |
git checkout master | |
#merge | |
git merge <branchname> | |
#push to origin | |
git push origin master |
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
git init | |
git remote add origin <xxx.git> | |
git pull origin master | |
git status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment