Comment créer une télécommande Git branch

Mots clés : gitbranchgit-branchgit

meilleur 5 Réponses Comment créer une télécommande Git branch

vote vote

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>  
vote vote

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 
vote vote

70

$ git push -u 
$ git config --global push.default current 
vote vote

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> 
vote vote

54

git checkout -b newbranch 
git push -u origin HEAD 

Questions similaires