GithubHelp home page GithubHelp logo

gitity's Introduction

gitity

a git tool to run some simple command.

install

npm i gitity -g

test

# base on master to make a new test branch, then pick some branches merge into this new test branch
gitity test <branch name>

delete

# pick some local branches to delete
gitity delete

# -D force to delete
gitity delete -D

check

# pick a local branch to checkout
gitity check

revert

# base on master make a new branch
git checkout master
git pull
git checkout -b feature/revert

# choose type
gitity revert

# `revert` means revert the revert commit to revert back
# other means other commit exclude revert commit
? choose which commit type you want to revert (Use arrow keys)
❯ revert 
  other 

# after choose type, then choose which commit you want to revert
? choose which commit you want to revert
❯ xxxxxxx____2023-09-01T08:37:57+00:00____some commit message________username

# then following 4 scenarios will occur:
# 1. revert success
# 2. there are some conflicts, you must resolve them by youself
# 3. the commit you want to revert is a merge commit, you must pick -m options to continue
# 4. unknown error, there will show error message from git

usub

# equivalent to `git submodule update --init --recursive`
gitity usub

push

# git push if error will execute git push --set-upstream origin xxx
gitity push

gitity's People

Watchers

James Cloos avatar hahazexia 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.