Skip to content

Tips and trick for Git

jooyce edited this page Dec 6, 2011 · 12 revisions

How to create a branch on the remote

git push origin origin:refs/heads/nameofyournewbranch
By default the newest branch is based on origin/master branch

How to track a remote branch

git checkout --track -b nameofyourlocalbranch origin/nameoftheremotebranch

How to push your modification on the remote

git push origin nameoftheremotebranch

Clone this wiki locally