How to join multiple commits from the same file?

Asked

Viewed 451 times

2

I did three commits on even file using git commit arquivo.ext -m "msg".

I realized that these three commits would look better together, as if they were one commit. There are ways to do this even after the git push?

  • 1

    Take a look at these responses https://stackoverflow.com/q/2563632/1518921

1 answer

2


  • 1

    I wouldn’t need the git add myfile before the commit?

  • 1

    No need, the git reset --soft makes it ready to commit: https://git-scm.com/docs/git-reset

Browser other questions tagged

You are not signed in. Login or sign up in order to post.