git 拉取远程分之到本地
生活随笔
收集整理的這篇文章主要介紹了
git 拉取远程分之到本地
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
git?checkout?-b?newbranch_name?--track?origin/feature/newbranch_name?
如果遇到類似:
fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout 'origin/remote-name' which can not be resolved as commit? 的問題 可使用一下命令: git remote show origin git remote update git fetch 然后再使用: git checkout -b local-name origin/remote-name 命令即可。 參考資料:Git checkout on a remote branch does not work?
轉載于:https://www.cnblogs.com/james1207/p/3327565.html
總結
以上是生活随笔為你收集整理的git 拉取远程分之到本地的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C++跨平台开发方法/工具
- 下一篇: [移动网关]2G环境下资源下载有一定概率