sudo pacman -S git
Gitin toimintaa voi ohjata luomalla kotihakemistoonsa .gitconfig-asetustiedoston. Oma .gitconfig tiedostoni sisältää:
[user]
name = xx
email = xx
[alias]
st = status
co = checkout
hist = log --graph --pretty=format:'%C(red)%h%Creset -%C(yellow bold)%d%Creset %s (%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
type = cat-file -t
info = cat-file -p
[core]
pager = less -r
excludesfile = ~/.gitignore
editor = vim
[color]
diff = auto
status = auto
[color "diff"]
frag = blue bold
meta = blue bold
func = blue bold
context = green
old = red bold
new = yellow bold
whitespace = red bold
commit = red
[color "status"]
added = yellow bold
changed = red bold
untracked = red bold
[push]
default = simpleTuo tiedosto viittaa edelleen .gitignore-tiedostoon, joka sisältää
*.swp TAGS
Gitignore-tiedosto käskee Gittiä jättämään huomiotta kaikki .swp-päätteiset tiedostot (Vim-editorin varmuuskopiot) sekä TAGS-nimiset tiedostot (ctags-ohjelman generoima sisällysluettelo).