U
U
unfapable2016-03-17 15:40:01
git
unfapable, 2016-03-17 15:40:01

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

1 answer(s)
O
OnYourLips, 2016-03-17
@unfapable

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 question

Ask a Question

731 491 924 answers to any question