Skip to content

Instantly share code, notes, and snippets.

@mithun-daa
Created December 19, 2011 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mithun-daa/1498267 to your computer and use it in GitHub Desktop.
Save mithun-daa/1498267 to your computer and use it in GitHub Desktop.
Commited new/updated files to git
#new branch
git checkout -b <branchname>
#switch back to master
git checkout master
git add .
git commit -m "some comment"
#switch to master
git checkout master
#merge
git merge <branchname>
#push to origin
git push origin master
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