Last Updated: February 25, 2016
· nashio

List all files from a git -bare repository

I recently started hosting my repos on my own server and found this handy way of looking at all the files from the repo without cloning (assuming you used the -bare option which doesn't show the files but has other benefits).

git log --pretty=format: --name-only --diff-filter=A | sort -

that's on the actual server, but you could call it from your local machine by ssh'ing to the server by:

ssh user@host "your git command here"