File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 38
38
pf = push --force-with-lease
39
39
who = shortlog -ns --
40
40
alpha = ! ~/src/git-alpha/git-alpha
41
+ default-branch = ! git symbolic-ref refs/remotes/origin/HEAD | sed ' s@^refs/remotes/origin/@@'
42
+ fixup = ! git-fixup
43
+ squash = ! git-squash
41
44
[core ]
42
45
excludesfile = ~/.gitignore
43
46
editor = vim
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eu
4
+
5
+ default_branch=$( git default-branch)
6
+
7
+ git --no-pager log $default_branch .. --pretty=format:" %h %s" |
8
+ selecta |
9
+ awk ' {print $1}' |
10
+ { read commit; git commit --fixup $commit ; }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -eu
4
+
5
+ default_branch=$( git default-branch)
6
+ first_commit=$( git --no-pager log $default_branch .. --pretty=format:%h | tail -1)
7
+
8
+ git ri $first_commit ~1
You can’t perform that action at this time.
0 commit comments