git ls-files in bare repository
You can try the other command which list files: git ls-tree –full-tree -r HEAD According to this comment, the command git ls-tree works in bare repo.
You can try the other command which list files: git ls-tree –full-tree -r HEAD According to this comment, the command git ls-tree works in bare repo.
To list untracked files try: git ls-files –others –exclude-standard If you need to pipe the output to xargs, it is wise to mind white spaces using git ls-files -z and xargs -0: git ls-files -z -o –exclude-standard | xargs -0 git add Nice alias for adding untracked files: au = !git add $(git ls-files -o … Read more