igoodful

##########################

 

1、若git clone之后想拉取某个指定分支:先git pull ,然后git checkout 指定分支名称

 

shell>> git clone  你的仓库地址

shell>> git pull 

shell >> git checkout 你的分支名称

 

 

 

 

2、若git clone之后想拉取某个指定分支:先git fetch origin 分支名称,然后git checkout 指定分支名称

 

shell>> git clone  你的仓库地址

shell>> git fetch  origin  你的分支名称

shell >> git checkout 你的分支名称

 

 

 

 

 强制覆盖本地:

 

shell>> git fetch --all  

shell>> git reset --hard origin/master
shell>> git pull

 

#####################

##########################################

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2021-10-01
  • 2022-12-23
  • 2021-10-22
  • 2021-11-08
  • 2021-05-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-21
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案