Typography

活版印字


  • Home
  • Archive
  • Categories
  • Tags
  •  

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo

取得其他 git remote branch

Posted at 2016-03-25 git branch 

如果 remote 上面有很分支,你在下 git clone 的時候,會發現它只有幫你建一個預設的分支。

查看 local 分支

git branch

checkout origin 上其他分支

如果你也需要 origin 上其他分支,你可以下 git branch --all 找到你要 checkout 的分支名稱。

然後把分支 checkout 出來,如下:

1
git checkout -b master origin/master

Share 

 Previous post: React Debug 小技巧 Next post: JQuery Module Pattern 

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo