Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 59 lines (46 sloc) 1.78 kb
#!/bin/bash
# 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.
EOF
read
# Basic config - edit and uncomment here if you haven't configured
# this before.
#
# User configuration
# git config --global user.name "Your Name"
# git config --global user.email your_email@example.com
#
# 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 alias.st stash
git config --global alias.cm commit
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.pl pull
git config --global alias.ps push
git config --global alias.cl 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."
echo
Jump to Line
Something went wrong with that request. Please try again.