Auto-Git is an extension to push project files to git in a predefined interval without taking any action by the developer.
When you install Auto-Git, it will look for a workspace/folder which has to be a git-repository. If not, the extension will be disabled automatically. So make sure you work in a git-repository. This extension will also append his own directories into the .gitignore file to prevent getting uploaded to the git. If you dont have a .gitignore file, one will be created by default.
Using Auto-Git from scratch with a fresh git repository.
Your steps are easy and also a common route to work with git: make a git repository with init, setup remote data and choose upstream branch
If you are working within another branch beside master, so do not forget to switch into it using:
I would prefer to use the git credential.helper for remembering username and password for the remote git.
Windows: For Windows, there is a helper called Git Credential Manager for Windows by Microsoft
also do not forget to setup user.name and user.email
After you created a git-repository, restart Visual Studio Code or reopen the workspace/folder. The extension recognizes it as a git repository and start automatically with predefined settings.
There will be a .autogit directory with logs folder and a autogit.json file. You can change some behavoir like interval, logging and silent-mode in the json file. After changing any value in the json file, you should stop and start the extension to reload the configuration. This can be done by restarting VS Code or using the extension commands.
Press F1 or CTRL+Shift+P to open VS Code Command Palette.
Written in TypeScript with love. This extension is a product of Zeitner GmbH.
This project is licensed under the GPL v3 License - see the LICENSE.md file for details