这是我的脚本,试图将我的bugfix分支合并到我的主分支上,准备将其推向上游.自bugfix分支创建以来,已经有一些上游更改被拉入master,现在它拒绝rebase.
它抛出错误的文件在打开时不会被分散.没有添加,删除或重命名的文件.没有任何东西被忽略,没有任何东西没有被追踪或上演或未分期.我完全不知道为什么rebase失败了.
我在OS X 10.6.6和git 1.7.4上
.-(/Volumes/joshua/www/txfunds)-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------(joshua@Kusanagi)-
`--> git rebase bug586-test master-test
First, rewinding head to replay your work on top of it...
Applying: - comiitting code related to api permissions
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
error: Your local changes to the following files would be overwritten by merge:
inc/data.inc
templates/apipermissions_tpl.inc
templates/currencies_tpl.inc
Please, commit your changes or stash them before you can merge.
Aborting
Failed to merge in the …Run Code Online (Sandbox Code Playgroud) 我在分支机构中进行了一些更改new.
我结账了master.
当我尝试合并时:
$ git merge new
Auto-merging js/site.js
CONFLICT (content): Merge conflict in js/site.js
Automatic merge failed; fix conflicts and then commit the result.
Run Code Online (Sandbox Code Playgroud)
所以我安装了kdiff3并配置了我的配置文件,当我尝试使用mergetools时,我得到了:
$ git mergetool kdiff3
No files need merging
Run Code Online (Sandbox Code Playgroud)
我跑了一个差异,它输出了这个:
diff --cc js/site.js
index 8c17d62,7955b13..0000000
--- a/js/site.js
+++ b/js/site.js
@@@ -72,4 -81,18 +81,22 @@@ function doSmallScreen()
$(document).ready(function () {
calculateScreen();
- });
++<<<<<<< HEAD
++});
++=======
+ $(window).resize(function () {
+ delay(function () {
+ calculateScreen();
+ }, 500);
+ }); …Run Code Online (Sandbox Code Playgroud) 我正在尝试将 BeyondCompare4 配置为 git 中的 difftool 和 mergetool。我正在使用 git 版本 2.5.0.windows.1。到目前为止,BeyondCompare4 作为 difftool 工作得很好,但不能作为合并工具。
从我的主分支运行git mergetool branch3,它响应No files need merging
但是当我运行时,git diff branch3我可以在一个文件中看到几种类型的差异(通常在同一行)。如果我只是运行git merge branch3它,它确实会启动合并过程并以 CONFLICT 停止。那么为什么不git mergetool以同样的方式为我工作呢?
此链接建议git config --global core.trustctime false我尝试失败:
git mergetool 报告“没有文件需要合并”
此链接表明 rerere 可能有问题,所以我git config --global rerere.enabled false也尝试过,但没有运气:
git 告诉我我合并冲突,但也告诉我没有文件需要合并
这是我的 .gitconfig 的样子:
[diff]
tool = bc
[difftool]
prompt = false
[difftool "bc"]
trustExitCode = true
cmd = 'c:/program files (x86)/beyond compare …Run Code Online (Sandbox Code Playgroud)