Skip to content

Instantly share code, notes, and snippets.

@graphicsminded
Last active January 28, 2020 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphicsminded/945399ab8ed8eaea02c239d17342d2a5 to your computer and use it in GitHub Desktop.
Save graphicsminded/945399ab8ed8eaea02c239d17342d2a5 to your computer and use it in GitHub Desktop.
Git Alias Cheat Sheet for ~/.gitconfig

Use Git Aliases to Reduce Fingertigue

Create

Include these aliases in your git workflow by adding them to: ~/.gitconfig

[alias]
    b = branch
    c = checkout
    h = help
    p = push
    s = status
    ss = status -sb #(short version)

    # Pretty git log
    l = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

    # Show plural verbose outpout about tags, branches or remotes
    tags = tag -l
    branches = branch -a
    remotes = remote -v

Use

At your commandline use git s instead of git status (or any other alias you create) to speed up your workflow and reduce fingertigue.


Star me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment