I've tried pretty much all of these, none appear to work: How do I force "git pull" to overwrite local files?
Here's 2 scenarios:
A) Delete a local file
1) git clone my_repo
2) cd my_repo
3) delete some file
4) git pull
> Already up to date
No it isn't I have deleted some files, why is it not pulling down the missing files ??
B) Change a File
1) git clone my_repo
2) cd my_repo
3) echo "xxx" >> some file
4) git pull
> Already up to date
It is not up to date, I have changed a file !
How can I force git to re-sync with the remote master ?
EDIT
I should have mentioned initially that this is for deployment, hence the requirement to effectively sync the local with the master.