Checkout remote Git branch
来源:互联网 发布:美国近期非农数据预测 编辑:程序博客网 时间:2024/05/16 17:24
http://stackoverflow.com/questions/1783405/checkout-remote-git-branch
With Git versions ≥ 1.6.6, you can just do:
git fetchgit checkout test
Old Answer
Before you can start working locally on a remote branch, you need to fetch it as called out in answers below.
To fetch a branch, you simply need to:
git fetch origin
This will fetch all of the remote branches for you. You can see the branches available for checkout with:
git branch -v -a
With the remote branches in hand, you now need to check out the branch you are interested in, giving you a local working copy:
git checkout -b test origin/test
0 0
- Checkout remote Git branch
- # git branch git checkout new-branch
- git branch&&rebase&&remote
- git常用命令之git branch, checkout使用说明
- Git notes about remote branch
- git 删除 remote branch索引
- Git Push create remote branch
- git checkout error when switching branch.
- git——branch checkout merge
- git中checkout前后的branch变化
- git分支操作(git branch;git checkout;git checkout -b;git merge;git merge --abort)
- 【Git】Git branch和Git checkout常见用法
- git/git-bash中的branch、checkout指令(git指令)
- Git remote branch 远程分支管理
- Git: Delete a branch (local or remote)
- [Git]将remote branch强制更新到local branch
- git branch -r view the newly created remote branch
- git pull remote branch cannot find remote ref
- Can I use multiple versions of jQuery on the same page?
- Minimum Path Sum
- Git: Delete a branch (local or remote)
- jQuery to disable/enable textarea
- reseting remote to a certain commit
- Checkout remote Git branch
- "面试共三面。 校招笔..."
- Leetcode: Letter Combinations of a Phone Number
- Unique Paths
- 在AJAX返回结果中循环执行另一个AJAX
- Merge K Sorted List
- Unique Paths II
- Facebook Open Graph META Tags
- What does appending “?v=1” to CSS and Javascript URLs in link and script tags do?