visual-studio-code

Why is VSCode now syncing automatically after commit?


Is this a very recent change? I've never seen this behavior before - today, I hit 'commit' in Source Control. Rather than it then the button changing to 'sync changes', and waiting to push the changes to repo until I hit that button, it automatically synced to my GitHub repo.

When did this change? I can't find anything about this on the VSCode github or release notes. This seems like a massive thing to change by default.


Solution

  • You can modify this behavior in your settings.json file by altering the git.postCommitCommand setting.

    The setting calls an action after a commit: