Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 3.13 KB

README.md

File metadata and controls

73 lines (50 loc) · 3.13 KB

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 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/)

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) A sample config.local.example is provided that you can inspire to create your own (not-tracked) config.local file.

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
# 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.

Uninstall

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

Resources

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