lx86 发表于 2018-9-17 06:55:08

Git克隆Github或Gitlab上非Master分支代码的方法

xpleaf@leaf:~/test/Blog_mini$ git checkout remotes/origin/version_1.0  
Note: checking out 'remotes/origin/version_1.0'.
  

  
You are in 'detached HEAD' state. You can look around, make experimental
  
changes and commit them, and you can discard any commits you make in this
  
state without impacting any branches by performing another checkout.
  

  
If you want to create a new branch to retain commits you create, you may
  
do so (now or later) by using -b with the checkout command again. Example:
  

  
git checkout -b
  

  
HEAD 目前位于 2ff197d... update README.md


页: [1]
查看完整版本: Git克隆Github或Gitlab上非Master分支代码的方法