Git: Force a Pull
Force a Pull
sometimes when you do a pull, you got errors saying conflict or other.
if you don't care about local changes, then just clean your working dir first, then pull.
git reset --hard
- discard local changes
git clean -xdf
-
delete all untracked local files and dirs.
🛑 WARNING: be careful.