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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -