Skip to content

Instantly share code, notes, and snippets.

@mithun-daa mithun-daa/branches
Created Dec 19, 2011

What would you like to do?
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
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
You can’t perform that action at this time.