Reputation: 1909
In visual studio code, I use the command Git > Create branch
Then, when I use Git > Push, I have an error message saying :
"Git: fatal: The current branch XXX has no upstream branch."
I know I can solve this problem by opening a command line and typing
git push --set-upstream origin XXX
My question is how can I do that directly from VSC ?
Upvotes: 1
Views: 1008
Reputation: 5287
try git push --set-upstream origin XXX in the terminal (CTRL+~)
of Visual Studio Code
Upvotes: 1