Skip to content

Instantly share code, notes, and snippets.

@OtherDevOpsGene
Created July 13, 2024 15:41
Show Gist options
  • Select an option

  • Save OtherDevOpsGene/8be4f41d99128eb018bf9f04d44b225c to your computer and use it in GitHub Desktop.

Select an option

Save OtherDevOpsGene/8be4f41d99128eb018bf9f04d44b225c to your computer and use it in GitHub Desktop.
# set the commiter name and email (which will match the GPG key)
git config --global user.name "Gene Gotimer"
git config --global user.email [email protected]
# only push the branch you are on, and only if the name on the remote is the same
git config --global push.default simple
# delete local copies of deleted remote branches
git config --global fetch.prune true
# track the branch you created this branch from, even if it is remote
git config --global branch.autosetupmerge always
# git pull will rebase rather than merge
git config --global branch.autosetuprebase always
# GPG key signing
git config --global user.signingkey E3DF8AB16AC057F5
git config --global commit.gpgsign true
# main vs. master
git config --global init.defaultbranch main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment