Thursday, 5 May 2022

GIT revert local changes and be update to current remote master

https://stackoverflow.com/questions/1146973/how-do-i-revert-all-local-changes-in-git-managed-project-to-previous-state 


git fetch # will fetch the latest changes on the remote

git reset --hard origin/master # will set your local branch to match the representation of the remote just pulled down.

No comments:

Post a Comment