I previously worked with the mercurial, but now with git. there were some problems, because git still a little different.
Could you suggest how you can update the git repository to the last commit, discarding all changes and conflicts, as it does for example hg up -C
in Mercurial
I was advised to command git checkout -f
, it displays this message:
Your branch and 'origin/master' have diverged, and have 24 and 5 different commit(s) each, respectively.
After applying this command, the files in the working directory are not updated.