命令:git init
效果:产生一个.git的隐藏文件
注意:.git目录中存放的是本地库相关的文件,勿动
设置签名
形式
用户名:tom
Email:abc@abc.com
作用:区分不同开发人员
辨析:这里设置的签名和登陆远程库没关系
命令:
1.项目级别:仅在当前本地库有效
git config user.name tom
git config user.email abc@abc.com
2.个人用户级别:在操作系统范围有效
git config –global user.name tom
git config –global user.email abc@abc.com
信息保存位置
~/.gitconfig
二者都有时采用项目级别