Skip to content

Instantly share code, notes, and snippets.

@heaths
Last active August 31, 2021 02:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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