Home > Net >  Change default button from "Commit" to "Commit and Push" in Source Control view
Change default button from "Commit" to "Commit and Push" in Source Control view

Time:08-12

As mentioned in the title, Is it possible to change the action of that BIG Button that says Commit to Commit and Push? That way, I need not do one additional action i.e. push every time I make a commit.

enter image description here

CodePudding user response:

The Git extension allows to set a Post Commit command. Which changes the wanted big button to 'Commit & Push' :)

Navigate there and set it to 'push':

Settings -> Extension -> Git -> Post Commit Command

Or change it in you settings.json:

"git.postCommitCommand": "push"

PostCommitCommand enter image description here

  • Related