How to remove this annoying Push Changes button in vscode?

Viewed 689

It wasn't there before, for something reason it appeared in my vscode recently, maybe after an update.

So anyone knows how to remove these buttons?

Thanks

enter image description here

2 Answers

As of v1.69, there is new setting to enable/disable these git commit/publish/sync buttons.

setting to enable or disable git action buttons or this setting in your settings.json:

"git.showActionButton": {
  "commit": false,
  "publish": false,
  "sync": false
}

NOTICE: Outdated since 1.69, see answer from Mark

The Visual Studio Code changelog for 1.61 has you covered:
https://code.visualstudio.com/updates/v1_61#_publish-or-sync-action-button-for-git-repositories

To quote the last section:

users can customize this behavior by configuring the git.showUnpublishedCommitsButton setting,
...
And finally, users can completely disable the visibility of any action buttons in the Source Control view via the new scm.showActionButton setting, which overrides any Source Control extension's behavior.

So for example, look in "Settings > Features > SCM > Show Action Button" or search for showActionButton in the "Search settings" field.

I don't know why the button is not showing up for me, so I cannot conform it is the correct setting - but this should be what you are looking for.

Related