LoginSignup
1
1

Gitで変更を無視しているファイルをリストアップするコマンド

Posted at

すでにGitリポジトリに追加されているファイルの変更をコミットしたくない場合、git update-index --assume-unchangedなどのコマンドで無視できるそうです。
以下の記事を参考にしました。

そのgit update-indexで無視しているファイルをリストアップするコマンドです。

git ls-files -v | sed -n 's/^\([a-zS]\)/\1/p'

同記事中でも解説されていますが、リポジトリに未追加のファイルの場合は.git/info/excludeというファイルを作成して.gitignoreと同じようにファイルを記述します。

1
1
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
1
1