Skip to content

Commit

Permalink
feat: add new git alias command
Browse files Browse the repository at this point in the history
  • Loading branch information
ryosan-470 committed Oct 9, 2024
1 parent 32918a3 commit b294dde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
l = log --graph --date=short --pretty=format:'%C(red reverse)%d%Creset%C(white reverse) %h% Creset %C(green reverse) %an %Creset %C(cyan)%ai%Creset%n%C(white bold)%w(80)%s%Creset%n%n%w(80,2,2)%b'
hash = rev-parse HEAD
p = !git push origin `git rev-parse --abbrev-ref HEAD`
pf = !git push origin `git rev-parse --abbrev-ref HEAD` --force-with-lease
delete-merged-branch = !git branch --merged | grep -v \\* | grep -v master | xargs -I % git branch -d %
# blameしてそのコミットが含まれるPR番号を教えてくれます
ag = "!git ls-files | xargs ag --pager=\"less -F -R\" --nogroup --color-match=0\\;31 --color-path=0\\;0 --no-numbers"
Expand Down

0 comments on commit b294dde

Please sign in to comment.