Skip to content

Commit

Permalink
add 'git adog' alias
Browse files Browse the repository at this point in the history
  • Loading branch information
redterror committed Feb 21, 2022
1 parent 1030879 commit d44f03a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitconfig.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
pf = push --force-with-lease
# https://stackoverflow.com/questions/3161204/how-to-find-the-nearest-parent-of-a-git-branch
parent = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #"
https://stackoverflow.com/a/35075021/845546
adog = log --all --decorate --oneline --graph
[color]
diff = auto
status = auto
Expand Down

0 comments on commit d44f03a

Please sign in to comment.