Mac下git用户名密码问题

使用git时,不提示输入用户名和邮箱是由于在系统里已经保存了信息html

应用>>钥匙串访问 对其操做便可git

 

 

经常使用命令:spa

查看用户名code

git config user.name

查看邮箱htm

git config user.email

设置用户名blog

git config --global user.name "julian" 

设置邮箱rem

git config --global user.email "xxxxx@qq.com"

初始化仓库get

git init

提交到gitit

git add .         //添加到暂存区
git commit -m '本次提交的备注' 

仓库状态class

git status    //查看版本库状态,什么被修改过但还没提交的
git diff      //查看当前相对上一次提交修改的内容

 远程仓库信息

git remote -v

拉取&推送

git pull
git push origin <tagname>

当前git配置

cat .git/config

 

更详细的 via http://www.javashuo.com/article/p-asbtdlrj-eq.html

相关文章
相关标签/搜索