
git
hugoall
这个作者很懒,什么都没留下…
展开
-
git 提示 fatal: refusing to merge unrelated histories
git 提示 fatal: refusing to merge unrelated histories $ git merge 分支名称 fatal: refusing to merge unrelated histories 2.读入数据 --allow-unrelated-histories 即可 示例:git merge master --allow-unrelated-histories 如果你也是git pull或者git push报fatal: refusing to merge un原创 2021-09-08 19:06:18 · 118 阅读 · 0 评论 -
git rebase 修改备注信息
git commit 未push 修改备注 未push比较简单 ① $ git commit --amend 进行修改 ② 按esc退出编辑模式,输入:wq保存并退出 注意中文esc请切换至英文 ③ $ git push 即可 git commit push 修改备注 ①--①修改倒数第1次的commit 指令:$ git rebase -i HEAD~1 ①--②修改commit --id 指令:$ git rebase -i commit -- 如果突然不想修.原创 2021-07-29 14:31:30 · 634 阅读 · 0 评论