Skip to content

Commit

Permalink
adding custom-squash alias to .gitconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittchen committed Jul 18, 2018
1 parent 97376b4 commit a92b5bf
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 @@ -54,6 +54,7 @@

; merging changes
merge-local-commits = !sh -c 'git reset --soft HEAD~$1' - ; merges n (arg) commits into one
custom-squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"

; branching
new-branch = checkout -b
Expand Down

0 comments on commit a92b5bf

Please sign in to comment.