Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianguarinautoformax/ac21ea4e8057e87aad782289a88ad8d9 to your computer and use it in GitHub Desktop.
Save julianguarinautoformax/ac21ea4e8057e87aad782289a88ad8d9 to your computer and use it in GitHub Desktop.
Git: Check files under git version control (the actual ones)
#This one is for the ones actually being tracked by git.
git ls-tree -r master --name-only
#If you want a list of files that ever existed (i.e. including deleted files):
git log --pretty=format: --name-only --diff-filter=A | sort - | sed '/^$/d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment