It turns out that I did some things wrong in my Android Studio code and everything has been mixed up without being able to order it, in my repository I have a copy of the ordered code.
How do I get it to Android Studio? Because if I do a pull
it tells me that it is updated.
Thank you
If the error is in the Local Repository.
You haven't made
push
the code and the bad changes are found locally.First option
We indicate that we will go back a commit since
HEAD
in theory it should be the last one, eliminating in turn all changes made.This is a dangerous method as there is no way to recover the original copy, the changes are permanently undone. Care should be taken when using it, as it is one of the only git commands that has the potential to lose your work.
Second option
We indicate that we will go back a commit since
HEAD
in theory it should be the last one, however we will not lose the changes made and these will remain pending for versioning.If the error is in the Remote Repository.
You have made
push
the code and the error is found in the Remote Repository (Online).Better option
The error is available to everyone, the best option is to undo the last commit.
differences
Revert and reset respectively.
Reference