Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 59 lines (46 sloc) 1.74 KB
# coolgit - some additional configs to make git cuter.
cat << EOF
This script adds some extra configs to your local git installation, making it
display messages in color and adding shorthands to commonly used commands (e.g.
'git co' instead of 'git checkout').
It optionally configures your global user name, email and .gitignore file. Edit
the script to change these configurations according to your setup.
If for some reason you don't want this - or if you want to step in and edit
the script yourself before running it - press CTRL-C now or ENTER to continue.
# Basic config - edit and uncomment here if you haven't configured
# this before.
# User configuration
# git config --global "Your Name"
# git config --global
# Global .gitignore file
# git config --global core.excludesfile ~/.gitignore
# You can also add these configs to each separate repo by omitting
# the --global parameter.
# Makes git colorful
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global color.pull auto
git config --global color.push auto
git config --global color.clone auto
git config --global color.commit auto
# Shorthand aliases
git config --global alias.s status
git config --global stash
git config --global commit
git config --global checkout
git config --global branch
git config --global pull
git config --global push
git config --global clone
# Make git push work on the current branch by default
git config --global push.default current
echo "All done! Use 'git config --list' to check the current configuration."