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 September 5, 2024 13:48 — 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