方法一
cd clone
git clone https://github.com/meiqua/shape_based_matching.git
cd shape_based_matching
git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/fusion_by_hand
remotes/origin/icp2D
remotes/origin/inv_light
remotes/origin/master
remotes/origin/python_binding
remotes/origin/rotate_templ
remotes/origin/sim3
remotes/origin/subpixel
git checkout -b fusion_by_hand origin/fusion_by_hand
......
git checkout -b subpixel origin/subpixel
git branch -a
fusion_by_hand
icp2D
inv_light
master
python_binding
rotate_templ
sim3
* subpixel
remotes/origin/HEAD -> origin/master
remotes/origin/fusion_by_hand
remotes/origin/icp2D
remotes/origin/inv_light
remotes/origin/master
remotes/origin/python_binding
remotes/origin/rotate_templ
remotes/origin/sim3
remotes/origin/subpixel
git checkout master
方法二
git clone xxxxxx
cd xxx
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
具体步骤
cd clone
git clone https://github.com/meiqua/shape_based_matching.git
cd shape_based_matching
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
git checkout master
git checkout fusion_by_hand
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)