chenzhengwei

1. 在工作空间,右键,打开Git Bash

 

2. clone主分支的代码(即下载主分支代码的过程)

执行命令: git clone xxx.git


3. 进入工程目录

cd   xxx

 

4.I believe this occurs when you are trying to checkout a remote branch that your local git repo is not aware of yet. Try:

git remote show origin
5.If the remote branch you want to checkout is under “New remote branches” and not “Tracked remote branches” then you need to fetch them first:

git remote update

git fetch  

6 切换到分支并下载代码

git checkout -b 远程仓库分支名字 origin/远程仓库分支名字

git pull

分类:

技术点:

相关文章:

  • 2021-06-06
  • 2021-11-06
  • 2021-12-03
  • 2021-10-22
  • 2021-05-03
  • 2021-11-20
  • 2021-05-10
  • 2021-11-17
猜你喜欢
  • 2021-04-18
  • 2021-07-05
  • 2022-12-23
  • 2021-10-20
  • 2021-11-20
  • 2021-05-20
  • 2022-01-24
相关资源
相似解决方案