Skip to content

Instantly share code, notes, and snippets.

View tfenster's full-sized avatar
🏠
Working from home

Tobias Fenster tfenster

🏠
Working from home
View GitHub Profile
@tfenster
tfenster / fork forced sync
Last active April 15, 2023 05:49 — forked from glennblock/fork forced sync
Force your forked repo to be the same as upstream. Forces master changes into fork and throws away all changes!
if no upstream remote created: git remote add upstream https://[upstream guy's repo url]
git fetch upstream
git reset --hard upstream/master
git push origin master --force