方法一:(已经创建了本地分支)
git branch --set-upstream-to=origin/remote_branch your_branch 等同于 git branch -u origin/remote_branch your_branch
方法二:(本地分支不存在)
git checkout -b your_branch origin/remote_branch
原文地址:https://www.cnblogs.com/lyraLee/p/10906058.html
时间: 2024-10-04 10:51:08