ULHPC Dotfiles -- some git configuration

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 about git, you might wish to take a look at the slides of the introduction to git presented 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 git configuration is organized as follows:

File Visibility Description
~/.gitconfig Public general aliases and core/colors configurations
~/.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 ULHPC Git configuration

You can use the install.sh script featured with the ULHPC dotfiles repository.

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

Uninstall

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

Resources

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