Skip to content

Instantly share code, notes, and snippets.

@cssence
Last active November 12, 2018 05:52
Show Gist options
  • Save cssence/611fbfe6dd392659f926 to your computer and use it in GitHub Desktop.
Save cssence/611fbfe6dd392659f926 to your computer and use it in GitHub Desktop.
git config --global
#!/usr/bin/env bash
git config --global user.name "$1"
git config --global user.email "$2"
git config --global core.excludesfile ~/.gitignore
git config --global log.date iso
git config --global format.pretty "%C(magenta)%h %C(cyan)%cd %Creset%C(reverse)%s%Creset <%ae>"
git config --global diff.context 0
git config --global alias.st status
git config --global alias.lo "log -n9"
@cssence
Copy link
Author

cssence commented Dec 16, 2014

echo -e "*~\n.DS_Store" > ~/.gitignore
./git-config.sh "John Doe" johndoe@example.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment