Git Product home page Git Product logo

simplegit's Introduction

Simple Git

Simple aliases for Git. Usage of git starting with g. After g you can use any known commands of git (g push, g pull, etc.).

This alias function includes other alias links, like g a for git add, g p for git pull and others. If you want to write branch name, m is standart alias for master, o is for origin and f branch_name is for feature/branch_name.

Install

  1. Clone repo in ~/ folder
  2. Add string source ~/simplegit/simplegit.sh to ~/.bashrc

Examples

> g a .
git add .

> g b a
git branch -a

> g c m
git checkout master

> g c f m
git checkout feature/master

> g c m fix
git commit -m "fix"

> g c b new_branch
git checkout -b new_branch

> g d
git diff

> g f
git fetch

> g l
git log

> g m m
git merge master

> g p
git pull

> g p r
git pull --rebase

> g p o m
git push origin master

> g p u o f new_branch
git push -u origin feature/new_branch

> g r
git reset

> g r h h
git reset ^HEAD --hard

> g s
git status

> g st
git stash

> g st a
git stash apply

> g st p
git stash pop

> g v
git version

simplegit's People

Contributors

ozio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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.