Git Product home page Git Product logo

git-shortcuts's Introduction

git-shortcuts

Usefull git shortcuts and autocomplete for the git-scm distribution of the bash terminal on Windows.

Commands

Shortcut Git command
less "less -r"
ls "ls -F --color --show-control-chars"
ll "ls -l"
gs "git status "
gss "git status -s"
gp "git pull -r"
gh "git push "
gho "git push -u origin "
up "git push "
upo "git push -u origin "
ga "git add "
gaa "git add -A"
gb "git branch "
gc "git commit "
gcm "git commit -m "
gd "git diff"
go "git checkout "
gob "git checkout -b"
gk "gitk --all&"
gx "gitx --all"
got "git "
get "git "
g "git "
gm "git merge "
gr "git reset "
gdf "git clean -f"

Instalation

Windows:

Automatic

copy settings.bat which deployes the settings automatically in %UserProfile% folder

Manual

Add .bashrc and .bash\_profile your current username app data folder (%UserProfile%). If you want also the monokai theme, add .minttyrc to the same folder as well.

File Description
.bashrc Contains the aliases (shortcuts) for the git commands
.bash_profile Contains autocomplete commands for the aliases (aka. use tab for autocomplete on known names)
.minttyrc Contains monokai theme for the mintty editor

MacOs / Linux:

You can just copy the settings from the .bashrc file in your settings folder and source it in the .bash_profile.

This is also integrated with the zsh, you can add the contents of the .bashrc to ~/.zshrc and source it.

I assume that if you are here, you already know how to add / source some aliases :). If not, please write me / issue this repo to add a more clear tutorial on how to install these.

This is distributed under GNU GPL 3 licence.

Happy productivity

git-shortcuts's People

Contributors

andreilucaci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

git-shortcuts's Issues

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.