, , master
, - new-master
. new-master
master
, new-master
, . :
git checkout master
git merge -X theirs new-master
master
, new-master
. master
github. .
-X theirs
git -merge.
ours
This option forces conflicting hunks to be auto-resolved cleanly by
favoring our version. Changes from the other tree that do not conflict
with our side are reflected to the merge result. For a binary file,
the entire contents are taken from our side.
This should not be confused with the ours merge strategy, which does
not even look at what the other tree contains at all. It discards
everything the other tree did, declaring our history contains all
that happened in it.
theirs
This is the opposite of ours.
, github.
git push --force origin master
. :
, , . , . , .