68
63

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git で競合ファイル一覧を楽に見る方法

Last updated at Posted at 2013-08-31

競合ファイル一覧を楽に見る方法は、あまりないようで。
設定ファイルに書くのが一番よさそうです。

コマンドの場合

git diff --name-only --diff-filter=U
git ls-files -u | cut -f 2 | sort -u
git ls-files -u | awk '{print $4}' | sort | uniq

設定して、 git conflicts で見る

以下を設定する

git config --global alias.conflicts '!git ls-files -u | cut -f 2 | sort -u'

以下で競合一覧を見る

git conflicts 

参考URL

merge - What's the simplest way to git a list of conflicted files? - Stack Overflow
http://stackoverflow.com/questions/3065650/whats-the-simplest-way-to-git-a-list-of-conflicted-files

検索用

git, conflict, list, diff, 競合, コンフリクト, 一覧, 差分

68
63
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
68
63

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?