Answer the question
In order to leave comments, you need to log in
How to change changes after commit?
I work in a separate branch, several affected files, I made a commit. But before pushing, I found a typo in the code. Question: how can you make changes without a new commit, within the framework of the previous one?
Answer the question
In order to leave comments, you need to log in
The simplest option is the --amend option. Follow
this link and other methods: https://git-scm.com/book/en/v1/Basics-Git-Cancel-and...
I also advise you to use the GUI interface for the simplest tasks: it will greatly save your time.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question