用git add 目录/目标文件,把修改后有争论的目标文件添加进来
PS C:\Users\LONG\Pandavan\rt-n56u-master> git pull lonecheat master
error: Pulling is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm ’
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
PS C:\Users\LONG\Pandavan\rt-n56u-master> git add board.h
fatal: pathspec ‘board.h’ did not match any files
PS C:\Users\LONG\Pandavan\rt-n56u-master> git add /trunk/configs/boards/E8820S/board.h
fatal: Invalid path ‘/trunk’: No such file or directory
PS C:\Users\LONG\Pandavan\rt-n56u-master> git add trunk/configs/boards/E8820S/board.h
PS C:\Users\LONG\Pandavan\rt-n56u-master> git add trunk/configs/boards/E8820S/board.mk
git commit –m ‘commit info’提交更改的文件
本文介绍如何使用Git解决文件合并冲突,包括如何添加争议文件到暂存区,解决由未合并文件引起的拉取失败,以及如何正确提交更改。
6277

被折叠的 条评论
为什么被折叠?



