Giter Site home page Giter Site logo

git-evac's Introduction

git-evac

ZH-中文文档

Git subcommand for emergency evacuation

incaseoffirewrong

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

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

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

Donation

See https://guoyk.xyz/donation

Credits

GUO YANKE, MIT License

git-evac's People

Contributors

yankeguo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.