thoughtbot/dotfiles — Issue #10: Basic .gitconfig
Author: croaky
Created: 2011-10-23 00:06:35+00:00
State: open

I helped someone set up their laptop today for Rails development. One thing that bugged me about his `thoughtbot/{laptop,dotfiles}` setup was the git settings.

What if we added this as the basic gitconfig?

[push]
default = tracking
[format]
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s
[alias]
up = !git fetch origin && git rebase origin/master
down = !git fetch && git rebase origin/master && git checkout master && git merge @{-1} && git push

This is a file that also immediately gets edited (when Github encourages them to add their git user name and email). Is that okay? I guess most other files in `dotfiles` are similarly edited / modified heavily by the user.