Resetting local branch to match the remote (master)
Note : You will loose all your local changes. Make sure you have your changes either committed & pushed or backed up before you run these commands
//1 . Fetch Origin
git fetch origin
//2. Reset Local to master
git reset --hard origin/master
Note : You will loose all your local changes. Make sure you have your changes either committed & pushed or backed up before you run these commands
//1 . Fetch Origin
git fetch origin
//2. Reset Local to master
git reset --hard origin/master
No comments:
Post a Comment