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

相關文章
相關標籤/搜索