I'm new in Git, and I just did a wrong push or commit. I cannot distinguish which mistake I made.
Assume that the original correct version is A, and the later wrong one is version B. When I clone the files using 'git clone', the files are version A. However, when I view from the Git Bitbucket website. The site says it was already changed to version B.
Can anyone suggest why it looks like this? I've checked the answer below. If remote repository means the result i found from the website? What are the differences between "git commit" and "git push"?
And I would like to have the version B in website back to version A. What should I do? Undo a commit or undo a push....