Skip to content

Instantly share code, notes, and snippets.

View alex-hladun's full-sized avatar
🏠
Working from home

Alex Hladun alex-hladun

🏠
Working from home
  • Accolite Digital
  • Calgary
View GitHub Profile
@ddeveloperr
ddeveloperr / git_push_force_upstream.md
Last active September 6, 2023 15:52
How to force “git push” to overwrite remote repo files WITH LOCAL files

You want to push your local files to remote files

git push -f <remote> <branch>
git push -f origin master

Local version has priority over the remote one!

more...