git - Squash commits into one commit -
i want squash commiets 1 commit. here example.
git log --pretty=oneline c4101e... removed conflict 04830f... t2345 - [bug fix1] 16d19f... t2272 - [bug fix2]
my requirement is, code changes done in c4101e (latest commit) , 16d19f (3rd commit) treated one. this
c4101e... removed conflict , t2272 - [bug fix2] 04830f... t2345 - [bug fix1]
thanks in advance.
you can use git rebase that. git rebase -i head~3 , ignore commit in middle.
check http://git-scm.com/docs/git-rebase , git rebase -i
Comments
Post a Comment