简体   繁体   中英

GIT pull specific file from trunk/master to overwrite local “change”

Our trunk is called "master" and I've done a rebase though there is a file "conflict" on the very last line:

Removed:

}

Added:

}

How do I force GIT to pull just the "conflicted" file to overwrite the local copy so I can do a clean rebase ? I do not want to blindly overwrite everything or lose untracked files.

在此处输入图片说明

You just have to git rebase --skip to skip that patch or
You resolve it and then git add <path> the file followed by a git rebase --continue .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM