Un trazador de líneas
git ls-files -v | grep "^[a-z]"
Usar alias
En mi humilde opinión, git hiddenes mejor para los archivos marcados como --assume-unchanged:
git config --global alias.hidden '!git ls-files -v | grep "^[a-z]"'
Aquí hay una lista de alias relacionados que tengo en ~/.gitconfig:
[alias]
hide = update-index --assume-unchanged
unhide = update-index --no-assume-unchanged
unhide-all = update-index --really-refresh
hidden = !git ls-files -v | grep \"^[a-z]\"
ignored = !git status -s --ignored | grep \"^!!\"
Para que funcione en subdirectorios y argumentos de soporte :
hidden = "!f(){ git -C \"$GIT_PREFIX\" ls-files -v \"$@\" | grep \"^[a-z]\";}; f"
ignored = "!f(){ git -C \"$GIT_PREFIX\" status -s --ignored \"$@\" | grep \"^!!\";}; f"
Por ejemplo:
# cd target
# git ignored classes
Acerca del estado del archivo
Para mí, la mayoría de los archivos ocultos están marcados con una bandera h, aunque en realidad hay varias otras banderas de acuerdo con el manual de git-ls-files-v:
-v
Similar to -t, but use lowercase letters for files that are
marked as assume unchanged (see git-update-index(1)).
Acerca de git ls-files-t:
This option (-t) identifies the file status with the following tags
(followed by a space) at the start of each line:
H cached
S skip-worktree
M unmerged
R removed/deleted
C modified/changed
K to be killed
? other