git réinitialiser l'origine
git fetch origin
git reset --hard origin/master
Remember this forever
télécommande de réinitialisation git
# local
git reset <commit-hash>
# or
git reset --hard <commit-hash>
# remote
git push -f origin master
git réinitialiser l'origine distante
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
réinitialisation de git à distance
git fetch origin
git reset --hard origin/master
réinitialisation de git difficile à distance
git reset --hard origin/master; git commit -m 'reset to remote';git push --force local dev
branche de réinitialisation git
git fetch origin
git reset --hard origin/branch_name