How to join multiple commits from the same file?

2

I made three commits in the same file using git commit arquivo.ext -m "msg" .

I realized that these three commits would be better together, as if they were a single commit. Can you do this even after git push ?

    
asked by anonymous 26.11.2017 / 19:24

1 answer

2

You can do this:

git reset --soft HEAD~3
git commit -m "GitCombinado com os ultimos 3"

More details: link

    
26.11.2017 / 19:30