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
Checkoutto 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
Addall those files (even if you're not in the root directory)Commitwith either the default message or the provided one
Pushto the remote of your branch (most commonlyoriginbut not necessary)
Installation
Usage
Examples
Will produce a commit with the default message Earthquake!!! This is an emergency commit
Will produce a commit with the message My custom message