-
Notifications
You must be signed in to change notification settings - Fork 0
Tips and trick for Git
jooyce edited this page Dec 12, 2011
·
12 revisions
git push origin origin:refs/heads/nameofyournewbranch
By default the newest branch is based on origin/master branch
git push origin :heads/nameoftheremotebranch
When you delete a branch on the remote, it don't delete this branch to the people who have this branch in local
git checkout --track -b nameofyourlocalbranch origin/nameoftheremotebranch
git push origin nameoftheremotebranch
git checkout nameoftheanotherlocalbranch