This extension automatically detects file changes in your workspace. If there are no further changes for 5 minutes, it will automatically commit and push the changes to your remote Git repository.
How it Works
The extension listens for file save events. Each time you save a file, a 5-minute timer is reset. If the timer completes without any other file saves, the extension will execute the following Git commands:
You must have Git installed and configured on your system.
Your workspace must be a Git repository, and it must have a remote origin configured.
You must be authenticated to push to the remote repository.
Installation
Copy the files from this project into a new folder.
Open the folder in VS Code.
Run npm install in the terminal to install the dependencies.
Press F5 to open a new Extension Development Host window that runs the extension.
Open a workspace that is a Git repository.
Make some changes to a file and save it. You should see a message in the console indicating the timer has started. After 5 minutes of inactivity, your changes will be pushed.