Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Svn-to-Git
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王进波
Svn-to-Git
Commits
f338fc93
Commit
f338fc93
authored
Aug 30, 2018
by
王进波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://civgit.vicp.net:8443/wangjinbo/Svn-to-Git
parents
1805c2c7
b395aa2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
使用Vimdiff解决git冲突.md
doc/使用Vimdiff解决git冲突.md
+3
-3
No files found.
doc/使用Vimdiff解决git冲突.md
View file @
f338fc93
#
Use vimdiff as git mergetool | 使用vimdiff作为git mergetool
#
使用vimdiff作为git mergetool
translated by 王进波 2018.08.30
...
...
@@ -22,7 +22,7 @@ git config mergetool.prompt false
## 创造合并冲突
我们来创建一个测试环境。你可以自由选择
调过这部分或者跟着教程来做。
我们来创建一个测试环境。你可以自由选择
跳过这部分或者跟着教程来做。
```
mkdir zoo
...
...
@@ -84,7 +84,7 @@ git mergetool
`LOCAL`
- 这个文件来自当前分支;
`BASE`
- 两个分支的共同祖先,在两个分支上的文件改变之前的样子;
`REMOTE`
- 要合并到你当前分支的外部分支上的文件;
`MERGED`
- 合并结果,将会保存到本地
`repo`
中。
我们假设我们希望保留
`octodog`
的变化(来自REMOTE)。为此,移动到
`MERGED`
文件上(Ctrl + w, j),移动光标到一个合并冲突的区域,然后:
假设我们希望保留
`octodog`
的变化(来自REMOTE)。为此,移动到
`MERGED`
文件上(Ctrl + w, j),移动光标到一个合并冲突的区域,然后:
```
:diffget RE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment