Falkor's Dotfiles -- some git configuration

Git is probably one of the most awesome productivity tool I use so far.

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

If you want to know more bout git, you might wish to take a look at the slides I made as an introduction to git during the UL HPC School. See also the Git Cheat Sheet proposed on Github.

Git installation

Installation of Git is relatively simple (actually it comes bundled with your system normally):

Linux / Mac OS

$> apt-get install git-core git-flow # On Debian-like systems
$> yum install git gitflow           # On CentOS-like systems
$> brew install git git-flow         # On Mac OS, using [Homebrew](http://mxcl.github.com/homebrew/)

Windows

Use git-for-windows, which includes Git Bash/GUI and Shell Integration

  • use PLINk from Putty
  • install Git bash + command prompt
  • select checkout windows / commit unix

Git configuration

The way I organize my git configurations is as follows:

File Alternative Visibility Description
~/.config/git/config ~/.gitconfig Public general aliases and core/colors configurations
~/.config/git/config.local ~/.gitconfig.local Private username / credentials / private business etc.

Note that this hierarchy assume the availability of the include.path directive within Git which was introduced in Git >= 1.7.10 (see http://git-scm.com/docs/git-config#_includes)

Installation for Falkor's Git configuration

You can use the install.sh script featured with the Falkor's dotfile repository.

$> cd ~/.config/dotfiles.falkor.d
$> ./install.sh --git     # OR ./install.sh --with-git

Uninstall

$> cd ~/.config/dotfiles.falkor.d
$> ./install.sh --delete --git

Resources

Consider these resources to become more familiar (if not yet) with Git: