Christophe Blin
Christophe Blin

Reputation: 1909

Visual Studio Code / Git : created branch can not be pushed

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

Answers (1)

Tom Schreck
Tom Schreck

Reputation: 5287

try git push --set-upstream origin XXX in the terminal (CTRL+~) of Visual Studio Code

Upvotes: 1

Related Questions