2010年1月4日 星期一

Git : How to config git environment

First time installing git, you need to configure git environment into ~/.gitconfig

# git config --global user.name "NAME"
# git config --global user.email NAME@example.com
# git config --global core.editor vi

http://progit.org/book/ch7-1.html


example: .gitconfig

vi .gitconfig

[color]

        ui = auto
branch = auto

[alias]

        co = checkout
ci = commit -a
st = status
br = branch
w = whatchanged

[user]

        name = foo
email = foo@gmail.com

[apply]

        whitespace = strip

[diff]

        color = auto
rename = copy

 

沒有留言:

張貼留言