'Skip --set-upstream doing git push
I'm really annoyed I have to do
`git push --set-upstream origin <my_branch>`
every time for new git branch. Is there any way I can skip it? I found this https://github.com/nvbn/thefuck
but I'm looking for solution that skip push --set-upstream
Solution 1:[1]
As I understand you don't want to skip it per se, you still want to set upstream but without so much hustle, right? In that case, you can use a shortcut:
git push -u origin <my_branch>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | kthnd |