git配置

當前項目下的.git/config

//用戶配置

[user]

        name = test

        email = [email protected]

//記住密碼

[credential]

       helper =  cache --timeout 86400    //設置密碼有效時間

       或者

      helper =  store                                    //密碼長期有效


全局配置

git  config  --global    key    [value]

git  config  --list                                          //查看配置


常用命令

git   statues                             //查看項目狀態

git   pull                                   //將服務器文件更新到本地

git   commit         -a                //全部提交

                              -m               //註釋

                              -am                                     

git   push

git配置:https://github.com/saidyou/dotfile/blob/master/.gitconfig

發佈了28 篇原創文章 · 獲贊 5 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章