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
.
git
commanddate
command for generating branch nameopenssl
command for generating branch name
Automatically
curl -sSL https://raw.githubusercontent.com/guoyk93/git-evac/main/install.sh | sudo bash -s
Manual
Get the script git-evac.sh
and install it to PATH
directory, /usr/local/bin
for example
git clone https://github.com/guoyk93/git-evac.git
cd git-evac
chmod +x git-evac.sh
sudo cp -f git-evac.sh /usr/local/bin/git-evac
In 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
See https://guoyk.xyz/donation
GUO YANKE, MIT License