前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >git 配置基本信息

git 配置基本信息

作者头像
用户3765803
发布2019-03-05 09:59:10
5670
发布2019-03-05 09:59:10
举报

配置用户名

  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
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2011-03-03 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档