Skip to content

Instantly share code, notes, and snippets.

@heaths
Last active June 2, 2024 00:28
Show Gist options
  • Save heaths/b7911e6cb7c683de963ae272c1193d07 to your computer and use it in GitHub Desktop.
Save heaths/b7911e6cb7c683de963ae272c1193d07 to your computer and use it in GitHub Desktop.
Base configuration for Git across machines
[user]
name = Heath Stewart
email = heaths@outlook.com
# On yubikey from within gpg --edit-card, run fetch to set up keys.
signingkey = E7728FAA
[alias]
sync = !git pull -p --ff-only upstream ${1:-main} && git push origin ${1:-main} && git fetch -p origin
[gpg]
# To support above signingkey from yubikey, need to reference newer gpg.
program = C:/Program Files (x86)/GnuPG/bin/gpg.exe
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment