List files with git ls-files from root instead of current working directory -


i'm looking command similar following, lists repository root, rather current working directory:

git ls-files --cached --others --exclude-standard 

if possible i'd rather not use bash/batch, since i'm looking cross-platform solution.

if can create alias,

git config --global alias.ls-files-root "! git ls-files" 

then should able do

git ls-files-root --cached --others --exclude-standard 

explanation: aliases starting '!' executed shell commands top-level directory. related: is there way git root directory in 1 command?.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -