Skip to content

Instantly share code, notes, and snippets.

@heaths
Last active Aug 31, 2021
Embed
What would you like to do?
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