Last active
November 12, 2018 05:52
-
-
Save cssence/611fbfe6dd392659f926 to your computer and use it in GitHub Desktop.
git config --global
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
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echo -e "*~\n.DS_Store" > ~/.gitignore
./git-config.sh "John Doe" johndoe@example.com