dotnet tool install --global dotnet-autocommit --version 1.1.1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-autocommit --version 1.1.1
nuke :add-package dotnet-autocommit --version 1.1.1
Are you like me and do you often screw yourself over by undoing just a bit too much, or forgetting to commit that one crucial part of the code you're writing? 😔
No more! I got your back! 💪😤
GitAutoCommit can automatically commit changes to git on a set interval to a separate dev branch, ending with a squash merge with a custom commit msg to the original head! Of course, the temporary dev branch will be cleaned up as well! Don't worry, it's also smart enough not to auto delete any GitAutoCommit branches should something horrible ever happen...
Finished monitoring your git repo? Just press CTRL+C !
As easy as running
$ dotnet tool install -g dotnet-autocommit
If you want to know how to configure GitAutoCommit, just scream!
autocommit --help for all options currently available
$ autocommit --help GitAutocommit 1.1.1 Copyright (C) 2019 Steven Thuriot -v, --verbose (Default: false) Set output to verbose messages. -i, --interval (Default: 60) Commit interval in seconds. -d, --directory (Default: Current Directory) Set the git repo directory. -p, --push Automatically push to origin after squashing. If not supplied, the squashed commit will not be pushed. -b, --branch Create a new branch before starting your work. It's good practice not to work on master, after all! --help Display this help screen. --version Display version information.
Jumping right in
🚀 Running the watcher in a git directory:
$ autocommit Monitoring D:\Git\GitAutoCommit for changes Auto committed 1 change on 09/30/2019 23:40:14 Auto committed 3 changes on 09/30/2019 23:41:14 Auto committed 2 changes on 09/30/2019 23:42:14 Commit message: I built new features Checking out development Squashing and merging auto commits Squashed changes have been committed Removing auto commit branch Finished auto committing
This package has no dependencies.