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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -