- git config --global user.name T-bagwell
配置用户email
- git config --global user.email T-bagwell@chinaunix.net
配置默认的编辑器为vim
- git config --global core.editor vim
查看配置
- [root@T-bagwell P5905]# git config -l
- color.ui=auto
- user.email=T-bagwell@ChinaUnix.net
- user.name=T-bagwell
- core.editor=vim
- core.repositoryformatversion=0
- core.filemode=true
- core.bare=false
- core.logallrefupdates=true
- remote.origin.url=root@192.168.1.109:/root/zk/5905_7050/P5905
- remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
- branch.master.remote=origin
- branch.master.merge=refs/heads/master
- [root@T-bagwell P5905]#
这个配置有什么用呢?后面可以看到
- [root@T-bagwell P5905]# git log
- commit 24ba0f009c0923d33ddcf7bebf3128a3febc1848
- Author: T-bagwell <T-bagwell@ChinaUnix.net>
- Date: Thu Mar 3 12:18:53 2011 +0800
- support rear camera at 5905 7050 version