File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 pf = push --force-with-lease
3939 who = shortlog -ns --
4040 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
4144[core ]
4245 excludesfile = ~/.gitignore
4346 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