我正在尝试从名为“front”的远程分支之一 pull 到名为“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 git@github.com:user/repo.git
- pull 它
git pull origin front
- 创建你的分支(如果 back 已经存在,不要理会 -b 标志)
git checkout -b back
- 将前面 merge 到后面
git merge front
关于git - 如何从git中的不同远程分支 pull ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41644776/