Skip to content

Instantly share code, notes, and snippets.

@marcello-telles
Last active October 17, 2021 06:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcello-telles/818660538b934a1a5bcc657902b1e531 to your computer and use it in GitHub Desktop.
Save marcello-telles/818660538b934a1a5bcc657902b1e531 to your computer and use it in GitHub Desktop.
git setup
#Credentials
git config --global user.name "Name Surname"
git config --global user.email "my_email@gmail.com" #or work email alternative
#Editor
git config --global core.editor "vim"
#Aliases
git config --global alias.cm commit
git config --global alias.st "status -sb" #simplified git status
git config --global alias.co checkout
git config --global alias.ph push
#Utilities
git config --global fetch.prune true #auto prune
git config --global rebase.missingCommitsCheck warn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment