Git: Force a Pull

By Xah Lee. Date: .

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.

git, pull, push