Last active
November 8, 2018 15:10
-
-
Save smikheiev/a107cf9ef17d6756eb9f5f07df732515 to your computer and use it in GitHub Desktop.
git config reminders
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 email for single repo | |
git config user.email "email@example.com" | |
git config user.email | |
# Set email globally | |
git config --global user.email "email@example.com" | |
git config --global user.email | |
# Set username for single repo | |
git config --global user.name "Mona Lisa" | |
git config --global user.name | |
# Set username globally | |
git config user.name "Mona Lisa" | |
git config user.name | |
# no pager for 'git branch' command | |
git config --global pager.branch false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment