我正在尝试从远程名为“front”的分支之一拉取名为“back”的分支:
git checkout front
git pull
但我收到错误消息,例如
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>.
我现在应该怎么做?提前致谢..
- 设置远程分支
git remote add origin [email protected] /cdn-cgi/l/email-protection:user/repo.git
- pull it
git pull origin front
- 创建您的分支(如果 back 已经存在,则不必使用 -b 标志)
git checkout -b back
- 将前面合并到后面
git merge front
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)