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"
Written by Ignacio Chavez
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Repo
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#