Skip to content

Commit def56a7

Browse files
committed
open conflicted files
1 parent 1ca3866 commit def56a7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
* [Status of ignored files.](https://github.com/git-tips/tips#status-of-ignored-files)
9292
* [Commits in Branch1 that are not in Branch2](https://github.com/git-tips/tips#commits-in-branch1-that-are-not-in-branch2)
9393
* [reuse recorded resolution, record and reuse previous conflicts resolutions.](https://github.com/git-tips/tips#reuse-recorded-resolution-record-and-reuse-previous-conflicts-resolutions)
94+
* [Open all conflicted files in an editor.](https://github.com/git-tips/tips#open-all-conflicted-files-in-an-editor)
9495

9596
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
9697
<!-- @doxie.inject end toc -->
@@ -629,5 +630,10 @@ git log Branch1 ^Branch2
629630
git config --global rerere.enabled 1
630631
```
631632

633+
## Open all conflicted files in an editor.
634+
```sh
635+
git diff --name-only | uniq | xargs $EDITOR
636+
```
637+
632638
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
633639
<!-- @doxie.inject end -->

tips.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,4 +278,7 @@
278278
}, {
279279
"title": "reuse recorded resolution, record and reuse previous conflicts resolutions.",
280280
"tip":"git config --global rerere.enabled 1"
281+
},{
282+
"title": "Open all conflicted files in an editor.",
283+
"tip": "git diff --name-only | uniq | xargs $EDITOR"
281284
}]

0 commit comments

Comments
 (0)