Last active
April 11, 2023 12:47
-
-
Save OtherDevOpsGene/5b087d49c7ae5e0c0c9ab4f21e4a4957 to your computer and use it in GitHub Desktop.
GitHub configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set the commiter name and email (which will match the GPG key) | |
git config --global user.name "Gene Gotimer" | |
git config --global user.email otherdevopsgene@portinfo.com | |
# 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 | |
# Colors that work for PowerShell, unneeded elsewhere or with other themes | |
git config --global color.ui true | |
git config --global color.status.changed "red bold" | |
git config --global color.status.untracked "red bold" | |
git config --global color.status.added "green bold" | |
git config --global color.diff.old "red bold" | |
git config --global color.diff.new "green bold" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment