Git - Squashing multiple commits into a single one

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Guys, just to let you know, I tried doing this and instead ended up rewriting 130 commits. Changes are intact but the date of commit has changed. Just try doing this on another branch and not dev or master. Hope this helps.

enjonpodrimaj
Автор

Wouldn't you be squashing to the latest commit on 28th

kennethcarvalho
Автор

If Two users works in same local branch

First user - Did 1 commit
Second user - did 3 commits

Second user try to squash those last 3 commits into 1 commit - Successfully happening

Then First user takes the same branch for work, then the branch get splitted into 3 commits and also the squash commit (total 4 commits) and also show one more commit like (first user merge those things in this branch)

Is there any solution for this?

balans
Автор

i strugle with getting rid of the editor, .. like what the Btn to clik.. etc . GIT is not at all friendly in this aspect...

ghostgutarist
Автор

why not "git rebase master" and have done with it?

zfolwick
Автор

Nice explanation! I learnt something new!

rohitjaiswal
Автор

Thank you Thank you :)
You explained it very well !

rasikakshirsagar
Автор

thanks, its realy help me squashing multiple commit.

kadambarijena