Answer the question
In order to leave comments, you need to log in
How to remove the last commit?
Hello. There is a project which I do by two machines. One is a work computer, the second is at home. At the moment, all the changes were on one of the machines. On the second one, I did a git pull, that is, I took the changes made from the other one. The question actually is that where I did git pull, the current working version is currently located, but when the git status command is executed, it displays a message
On branch master
Your branch is ahead of 'origin/master' by 13 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
git reset HEAD~1 --soft
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question