Git subcommand for emergency evacuation
In an emergency, it is unwise to enter git commit and git push manually, you may need to spend extra effort
entering comments and dealing with any possible commit conflicts.
Real programmers won't allow this kind of imprecise approach.
So I created git-evac.
gitcommanddatecommand for generating branch nameopensslcommand for generating branch name
Automatically
curl -sSL https://raw.githubusercontent.com/yankeguo/git-evac/main/install.sh | sudo bash -sManual
Get the script git-evac.sh and install it to PATH directory, /usr/local/bin for example
git clone https://github.com/yankeguo/git-evac.git
cd git-evac
chmod +x git-evac.sh
sudo cp -f git-evac.sh /usr/local/bin/git-evacIn case of fire, you can simply type git evac or git-evac and leave the building.
It will help you:
- Stage all changes
- Switch to a new branch
- Create commit with comments filled
- Push to remote server
GUO YANKE, MIT License
