From def56a7e7b56b7bd687950b3ef2f09d2a97c32a6 Mon Sep 17 00:00:00 2001 From: "Hemanth.HM" Date: Fri, 11 Mar 2016 19:28:15 +0530 Subject: [PATCH] open conflicted files --- README.md | 6 ++++++ tips.json | 3 +++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 2a6e9b9..d766842 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ * [Status of ignored files.](https://github.com/git-tips/tips#status-of-ignored-files) * [Commits in Branch1 that are not in Branch2](https://github.com/git-tips/tips#commits-in-branch1-that-are-not-in-branch2) * [reuse recorded resolution, record and reuse previous conflicts resolutions.](https://github.com/git-tips/tips#reuse-recorded-resolution-record-and-reuse-previous-conflicts-resolutions) +* [Open all conflicted files in an editor.](https://github.com/git-tips/tips#open-all-conflicted-files-in-an-editor) @@ -629,5 +630,10 @@ git log Branch1 ^Branch2 git config --global rerere.enabled 1 ``` +## Open all conflicted files in an editor. +```sh +git diff --name-only | uniq | xargs $EDITOR +``` + diff --git a/tips.json b/tips.json index 5d8c0e8..03283a2 100644 --- a/tips.json +++ b/tips.json @@ -278,4 +278,7 @@ }, { "title": "reuse recorded resolution, record and reuse previous conflicts resolutions.", "tip":"git config --global rerere.enabled 1" +},{ + "title": "Open all conflicted files in an editor.", + "tip": "git diff --name-only | uniq | xargs $EDITOR" }]