-
Notifications
You must be signed in to change notification settings - Fork 1
git:config
Francisco edited this page Sep 29, 2013
·
6 revisions
It is very common to configure your ~/.gitconfig file. Here are the essential ones:
Personal info:
[user]
name = Francisco
email = franlucas@gmail.com
Add color:
[color]
ui = auto
Editor:
[core]
editor = sub -w
Improved log:
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
Improved cleaning:
[alias]
cleanall = clean -fxd
Update submodules recursively:
[alias]
sup = submodule update --init --recursive