相关疑难解决方法(0)

将先前的提交分解为多个提交

如果没有创建分支并在新分支上做一堆时髦的工作,是否有可能在提交到本地存储库后将单个提交分解为几个不同的提交?

git

1113
推荐指数
13
解决办法
27万
查看次数

修复冲突后git还在抱怨吗?

我通常rebase在从队友那里获得变化时,经常是我有冲突的时候:

...
CONFLICT (content): Merge conflict in app/views/search/index.html.erb
Auto-merging public/stylesheets/application.css
CONFLICT (content): Merge conflict in public/stylesheets/application.css
Failed to merge in the changes.
Patch failed at 0001 organizing

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".
Run Code Online (Sandbox Code Playgroud)

因此,在打开每个冲突文件后,修复它然后提交固定文件:

~/Projects/myApp[956f6e1...]% git rebase --continue
You must edit all merge conflicts and then
mark them as …
Run Code Online (Sandbox Code Playgroud)

git

32
推荐指数
1
解决办法
2万
查看次数

标签 统计

git ×2