Skip to content

Instantly share code, notes, and snippets.

View geldmacher's full-sized avatar
馃榿
https://giphy.com/gifs/OR2JV6cRaVkdvtPg1d/html5

Dennis Geldmacher geldmacher

馃榿
https://giphy.com/gifs/OR2JV6cRaVkdvtPg1d/html5
View GitHub Profile
@ummahusla
ummahusla / git-overwrite-branch.sh
Last active October 20, 2026 23:11 — forked from brev/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of feature branch (feature > master)
git checkout feature # source name
git merge -s ours master # target name
git checkout master # target name
git merge feature # source name