An awesome .gitconfig

May 25, 2023

  email = MY_EMAIL_HERE
  name = FIRST LAST
  signingkey = A_SIGNING_KEY_GOES_HERE

  gpgsign = true

  tool = vimdiff

  tool = vimdiff
  conflictstyle = diff3

  forward = !sh -c \"git switch --detach $(git rev-list --first-parent --topo-order HEAD.."$1" | tail -1)\"  

The alias will let me write “git forward master” and we’ll travel down the DAG toward master, always choosing the first-parent when encountering branches.

Contact me at byronka (at)