我有github分支,当主分支达到某种可接受的状态(做过一次)时,我推送给github。为此我做了:git merge squash - 冲突解决当我想要的是我从分支的变化我从
[email protected] /c/Dropbox/eclipse_workspaces/android/AndroidMonitoring (master)
$ git checkout github
Switched to branch 'github'
[email protected] /c/Dropbox/eclipse_workspaces/android/AndroidMonitoring (github)
$ git merge --squash master
Auto-merging src/gr/uoa/di/monitoring/android/services/Monitor.java
CONFLICT (add/add): Merge conflict in src/gr/uoa/di/monitoring/android/services/
Monitor.java
//...
Automatic merge failed; fix conflicts and then commit the result.
我想是刚刚在同一状态下的工作目录正是作为主HEAD。
- 是我的做法错误的方式(反复合并--squashing到github分支)。
- 有没有一种简单的,可以防止白痴的方式来达到这个目的(不经历每次冲突)。
作为奖励,我想知道是什么使用本地版本和使用远程版这个PIC的意思是 - msysgit:
_I想知道有什么用本地版本,并使用远程版本指本PIC工作 - msysgit_:这仍然是一个神秘 – 2013-07-18 20:28:04