gitfiles
A collection of files used to customize my Git environment.
Installation
-
Clone the repo, then symlink files used by Git/referenced in
.gitconfig:$ git clone git://github.com/DavidCain/gitfiles.git $ ln -s gitfiles/.gitconfig_global ~/.gitconfig $ ln -s gitfiles/.gitignore_global ~/.gitignore $ ln -s gitfiles/git_template ~/.git_template
-
(Optional) install
diff-so-fancy& configure for use:- Install (as preferred): https://github.com/so-fancy/diff-so-fancy
- Set up as pager:
export GIT_PAGER="diff-so-fancy | less --tabs=4 -RFX"
-
(Optional) install
ctagsfor automatic tag updating- Install preferred
ctagsimplementation, make available in$PATH - Run
git initin any existing repositories to build hooks from template
- Install preferred
(I use an install script in my dotfiles to automate the above process).