To disregard master
, when you have branch
checked out then:
git merge master --strategy=ours
http://schacon.github.com/git/git-merge.html
As ‘Computer Linguist’ Lilith River
commented, this will “ignore everything from ‘master’, even if it has changes to new, independent files”. So if you are not the OP and want a more safe merge that does not as the OP says “forget the merging”, then use this excellent safe command from Lilith River, and upvote his comment up so he gets credit.
git merge -s recursive -X theirs <branch>