After executing the command git reset --hard commitid
and git push --force
, and pushing some commits on the repo(Staging), the new commits does not reflect on the server.
My colleagues were able to see my commits but the changes does not reflect on the site and when checking on the file on the server, the file is not updated.
The HEAD
looks correct based on what I can see from the SourceTree and Terminal.
Already tried reseting the HEAD
to the new commit just to make sure but still having the same problem.
Also tried git push origin Staging
and git push origin Staging:Staging
and still having the same problem.
EDIT
Tried also git log
on the server and noticed that the commits are different from my local. Some of the latest commits from the server should be removed because of the reset that I made but only my local git has been updated.