Skip to content

Instantly share code, notes, and snippets.

@todd-dsm
Created April 28, 2021 04:33
Show Gist options
  • Save todd-dsm/861c14f144ead6afc31900d1610dbf16 to your computer and use it in GitHub Desktop.
Save todd-dsm/861c14f144ead6afc31900d1610dbf16 to your computer and use it in GitHub Desktop.
commands to configure the git client
# Enter these commands into the shell
# Minimally, you'll give a name and email address to begin:
git config --global user.name "fName lName"
git config --global user.email "[email protected]"
git config --global core.editor vim
git config --global color.ui true
git config --global push.default matching
# Dump logs to stdOut and add an alias to see them in reverse:
git config --global core.pager cat
git config --global core.excludesfile ~/.gitignore
git config --global alias.rlog 'log --reverse'
# Quickly display the configuration
git config --list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment