https://github.com/yankeguo/git-evac
A Git subcommand for emergency evacuation
https://github.com/yankeguo/git-evac
git git-subcommand in-case-of-fire script shell-script
Last synced: 2 months ago
JSON representation
A Git subcommand for emergency evacuation
- Host: GitHub
- URL: https://github.com/yankeguo/git-evac
- Owner: yankeguo
- License: mit
- Created: 2022-09-16T09:14:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T02:49:15.000Z (4 months ago)
- Last Synced: 2025-01-24T03:24:18.296Z (4 months ago)
- Topics: git, git-subcommand, in-case-of-fire, script, shell-script
- Language: Shell
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-evac
[ZH-中文文档](README.zh.md)
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`.
## Requirements
- `git` command
- `date` command for generating branch name
- `openssl` command for generating branch name## Installation
**Automatically**
```shell
curl -sSL https://raw.githubusercontent.com/yankeguo/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
```shell
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-evac
```## Usage
In case of fire, you can simply type `git evac` or `git-evac` and leave the building.
It will help you:
1. Stage all changes
2. Switch to a new branch
3. Create commit with comments filled
4. Push to remote server## Credits
GUO YANKE, MIT License