相关疑难解决方法(0)

Git rebase合并冲突无法继续

我正试图改变'dev'以赶上'master'分支.

$ git checkout dev 
$ git rebase master 
First, rewinding head to replay your work on top of it...
Applying: Corrected compilation problems that came from conversion from SVN.
Using index info to reconstruct a base tree...
M       src/com/....
<stdin>:125: trailing whitespace.
/**
<stdin>:126: trailing whitespace.
 *
<stdin>:127: trailing whitespace.
 */
<stdin>:128: trailing whitespace.
package com....
<stdin>:129: trailing whitespace.

warning: squelched 117 whitespace errors
warning: 122 lines add whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging …
Run Code Online (Sandbox Code Playgroud)

git git-rebase

114
推荐指数
4
解决办法
7万
查看次数

git cherry-pick不起作用

我正在尝试从主人那里挑选一个提交并将其放入当前的生产分支.但是,当我执行时git cherry-pick <SHA-hash>,我只收到此消息:

# On branch prod_20110801
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#   site/test-result/
 nothing added to commit but untracked files present (use "git add" to track)
 The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:

    git commit --allow-empty

Otherwise, please use 'git reset'
Run Code Online (Sandbox Code Playgroud)

注意:我尝试过重置和重置 - 硬HEAD ^,似乎都没有改变任何东西.

我很困惑为什么这不适合我.

任何关于如何解决这个问题的见解,建议或想法都会有所帮助〜!

git cherry-pick branching-and-merging

98
推荐指数
4
解决办法
5万
查看次数