S
S
sorry_i_noob2018-10-23 13:56:56
git
sorry_i_noob, 2018-10-23 13:56:56

I accidentally made a config commit. Now I have removed them. But the commit remained. How do I remove a commit and leave the files as they are now?

I want to remove a commit but not roll back files before that commit was made, e.g. I want the files to be the same as I have them now. How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Softer, 2018-10-23
@Softer

git reset --hard commit_hash
git push -f

Roll back to the desired commit and push. I recommend making a copy of the turnip for everyone.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question