2

【踩坑】Git执行merge命令时报错

 1 year ago
source link: https://loli.fj.cn/2023/03/30/Git%E6%89%A7%E8%A1%8Cmerge%E5%91%BD%E4%BB%A4%E6%97%B6%E6%8A%A5%E9%94%99/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【踩坑】Git执行merge命令时报错

2023-03-30

Git执行merge命令时报错:not something we can merge

  • 本地没有指定的分支可以进行merge合并
  • merge分支合并操作只能将本地的两个分支合并,在执行merge命令之前需要先执行fetch命令将远端分支信息获取到本地,再进行merge合并

<repo_nickname>:仓库名

git fetch <repo_nickname>

IT工具网


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK