Skip to content

Commit 400a1e3

Browse files
committed
gitconfig: Replace the "fixup" alias with a more generic "sq(uash)" one
1 parent 54b397a commit 400a1e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/.gitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
commit-id = "!f() { commit=${1:-HEAD}; git log -1 --patch $commit | git patch-id | cut -d' ' -f1; }; f"
1515
cp = cherry-pick
1616
dt = difftool -M
17-
fixup = "!f() { base=${1:-2}; git reset --soft HEAD~$base && git commit -C ORIG_HEAD~$(expr $base - 1); }; f"
1817
fp = fetch --all --prune
1918
has = branch -a --contains
2019
id = rev-parse --short HEAD
@@ -33,6 +32,7 @@
3332
ri = rebase -i -p
3433
rs = remote -v show
3534
ru = reset --hard @{u}
35+
sq = "!f() { amount=${1:-2}; git reset --soft HEAD~$amount && git commit -m \"$(git log --format=%B --reverse HEAD..HEAD@{1})\" --edit; }; f"
3636
st = status
3737
unpushed = log --branches --not --remotes --simplify-by-decoration --decorate --oneline
3838
up = "!f() { upstream=${1:-upstream/master}; head=${2:-HEAD}; git log --cherry --oneline $upstream...$head; }; f"

0 commit comments

Comments
 (0)