[備忘] git http(https) 免密碼提交

由於公司內網22端口被封,只能撥vpn 才能用ssh 提交代碼。因此記錄以下免密碼http(https)提交方式。

修改項目下.git/config

將原來的

http://git.xxx.com/xxxxx/xxxx.git

改爲

 http://username:[email protected]/xxxxx/xxxx.git

即可

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章