git记录

克隆项目


git clone http://xxx.xx.git
git clone http://username:password@xxx.xxx.git

 

克隆指定分支

git clone -b dev http://xxx.xx.git
git clone -b dev http://username:password@xxx.xxx.git

 

linux 永久保存git用户密码,执行以下代码,然后更新代码,输入密码后,后续就不用再次输入了

git config --global credential.helper store

#新版改成了git config credential.helper store

 

不校验https

git config --global http.sslVerify "false"

 

指定用户拉取代码

 

git clone -b dev http://username@xxx.xx.git

 

 

1.git remote 查看所有远程仓库
2.git remote xxx 查看指定远程仓库地址
3.git remote set-url origin 你新的远程仓库地址

posted @ 2020-01-07 10:09  Binz  阅读(149)  评论(0编辑  收藏  举报