Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can cause a disabled git push button in VSCode?

I cannot push to Github from Visual Studio Code (version 0.5.0). I didn't find any explanation how to set it. It works fine from the console, but I would be happy to know why it doesn't work from VSCode.

What it looks like:

vscode screenshot

like image 334
nik Avatar asked Jul 08 '15 11:07

nik


1 Answers

VSCode looks at whether the branch has an upstream link.

If you want to push/pull your master branch to origin/master, you can run the following command and set the upstream link:

git branch -u origin/master master

From then on VSCode will enable those actions for the master branch.

like image 178
João Moreno Avatar answered Nov 08 '22 03:11

João Moreno