git 配置基本信息

配置用户名

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

延伸阅读


▶ Walkthrough007

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值