Mots clés : gitbranchgit-branchgit
90
git checkout -b <branch-name> # Create a new branch and check it out
git push <remote-name> <branch-name>
git push <remote-name> <local-branch-name>:<remote-branch-name>
git push --set-upstream <remote-name> <local-branch-name>
89
git checkout -b your_branch
git push -u origin your_branch
git fetch git checkout origin/your_branch
git push
... work ... git commit ... work ... git commit git push origin HEAD:refs/heads/your_branch
git checkout --track -b your_branch origin/your_branch ... work ... git commit ... work ... git commit git push
70
$ git push -u
$ git config --global push.default current
67
git push <remote-name> <local-branch-name>:<remote-branch-name>
git remote update
git checkout -b <local-branch-name> <remote-name>/<remote-branch-name>
54
git checkout -b newbranch
git push -u origin HEAD