V
V
Vladimir Golub2019-05-22 18:06:32
git
Vladimir Golub, 2019-05-22 18:06:32

What to do if I put extra files in one commit?

I made a commit, but added extra files there. How can I cancel it to split it into two?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2019-05-22
@RazerVG

git reset --soft HEAD^
Reverts the last commit.
Then
to exclude the file.
And then fixing as usual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question