git has problems with squashing commits once there is "Merge branch" -


i trying squash commits – current git log looks this:

https://gist.github.com/knyttl/a2f39cd9376301c78b07

notice "merge branch 'master'" – once shows in log, squashing rebase results in conflicts.

git rebase -i zzzzzz 

what don't understand branch has conflicts resolved, every commit nicely in line, why should these problems emerge?

[detached head yyyyy] typo 16 files changed, 192 insertions(+), 83 deletions(-) error: not apply xxxx... typo  when have resolved problem run "git rebase --continue". if prefer skip patch, instead run "git rebase --skip". check out original branch , stop rebasing run "git rebase --abort".  not apply xxxx... typo 

i want commits disappear , create 1 instead of of them.

do still branch merge ?

you can git reset --hard _hash-before-merge_

then

git merge --squash your-branch git commit 

that should squash of commits 1 , merge.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -