git - Pourquoi ai-je besoin de faire le set-upstream tout le temps

Mots clés : gitgit-branchgit

meilleur 5 Réponses git - Pourquoi ai-je besoin de faire le set-upstream tout le temps

vote vote

99

git push -u origin my_branch 
git push -u origin HEAD 
git branch --set-upstream-to origin/my_branch 
git branch -u origin/my_branch 
vote vote

82

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

78

$ git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use      git push --set-upstream origin master  $ fuck git push --set-upstream origin master [enter/↑/↓/ctrl+c] Counting objects: 9, done. ... 
vote vote

64

git checkout -b my-branch origin/whatever 
vote vote

57

git branch -u origin/my-branch 
git push -u origin my-branch 
git checkout -b my-branch -t origin/my-branch 
git checkout -b my-branch git push -u origin my-branch 

Questions similaires