首页 > 技术文章 > git记录

binz 2020-01-07 10:09 原文

克隆项目

git clone http://xxx.xx.git

 

克隆指定分支

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

 

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

git config --global credential.helper store

 

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

推荐阅读