git overwrite remote files 1

git overwrite remote files

git push -f  
e.g.
git push -f origin main 

Here is what the above code is Doing:
1. git fetch –all
2. git checkout -b /
3. git reset –hard /
4. git push -f

Similar Posts