6 releases (3 stable)
1.0.2 | May 15, 2022 |
---|---|
0.3.0 | May 15, 2022 |
0.2.0 | May 14, 2022 |
0.1.2 | May 14, 2022 |
#57 in #quickly
22 downloads per month
10KB
133 lines
git-eq
(aka git earthquake)
Earthquakes are part of the daily life in many countries like in Taiwan.
git-eq
is a simple git command to quickly save your local changes in case of an emergency like this.
This project is heavily inspired by git-fire.
What this command does
Checkout
to a new branch namedearthquake/<origin-branch>-<email>-<elapsed-seconds-since-unix-epoch>
(eg:earthquake/master-bob@domain.com-1652438295
)- If there are some uncommited changes
Add
all those files (even if you're not in the root directory)Commit
with either the default message or the provided one
Push
to the remote of your branch (most commonlyorigin
but not necessary)
Installation
cargo install git-eq
Usage
git eq [message]
Examples
git eq
Will produce a commit with the default message Earthquake!!! This is an emergency commit
git eq "My custom message"
Will produce a commit with the message My custom message
Dependencies
~0.5–7.5MB
~51K SLoC