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.
Installation of Git is relatively simple (actually it comes bundled with your system normally):
$ apt install git 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/)
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
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)
A sample config.local.example
is provided that you can inspire to create your own (not-tracked) config.local
file.
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
# Copy and adapt local configuration
$ cd ~/.config/git/
$ cp ~/.config/dotfiles.falkor.d/git/config.local.example config.local
$ vim ~/.config/git/config.local
# /!\ ADAPT name , email etc.
$ cd ~/.config/dotfiles.falkor.d
$ ./install.sh --delete --git
Consider these resources to become more familiar (if not yet) with Git:
- Simple Git Guide
- Git book
- Github:help
- Git reference
- Git Cheat Sheet proposed on Github.