Skip to content

drewjs/git-alias-conf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Git Alias Configuration

A helpful list of commands for your git workflow.

More information: Ultimate Git Alias Setup

Installation

Add the following section to ~/.gitconfig:

[alias]
        # inspection
        ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
        ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
        lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
        ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
        fl = log -u
        dl = !git ll -1
        dlc = diff --cached HEAD^
        f = !git ls-files | grep -i

        # view aliases
        la = !git config -l | grep alias | cut -c 7-

        # point of no return
        rh = reset --hard HEAD
        rh1 = reset --hard HEAD^
        rh2 = reset --hard HEAD^^

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published