Git interactive rebase - any way to instruct git to resolve conflicts keeping the HEAD version? -
tried variations of git rebase -i -xours master
still conflicts shown , have resolve them manually. plus it's not entirely clear happens non conflicting changes in case of conflicting commit - kept ?
use case: temp rebase old branches on master see if there such changes in branches (not in master @ all), keeping version of code in master conflicting changes (horrible, horrible conflicts)
$ git --version git version 2.6.1.windows.1
git ls-files -u | cut -f2- | uniq | git checkout-index --stdin --stage=all \ | while read base ours theirs path; git merge-file --ours \ -l "$path" -l o/"$path" -l b/"$path" \ -- $ours $base $theirs mv $ours "$path" rm $base $theirs done
Comments
Post a Comment