Skip to content

Instantly share code, notes, and snippets.

@navkast
Last active July 31, 2019 03:56
Show Gist options
  • Save navkast/6d1ec3105fd80d5ea5af9271c875a8c8 to your computer and use it in GitHub Desktop.
Save navkast/6d1ec3105fd80d5ea5af9271c875a8c8 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
list-alias = "!git config -l | grep alias | cut -c 7-"
lds = log --graph --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cred\\ [%an]" --decorate --date=short
delete-merged-branches = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs git branch -d; }; f"
puush = "!f() { git symbolic-ref --short -q HEAD | xargs git push -u origin ; }; f"
logg = log --graph --decorate --pretty=short
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment