18 12 / 2011
Git fetch, push and merge
Lets say you created a new branch called “testbranch” on remote.
git fetch orgin
To fetch data from remote to local.
git merge origin/testbranch
To merge new “testbranch” branch.
git push origin testbranch OR git push origin
testbranch:testbranch
Former is a shorthand, latter is simply saying to push local
testbranch to remote testbranch.
Permalink 12 notes