Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active October 28, 2017 06:47
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 weshouman/53dbe6d4343c3cd023fa to your computer and use it in GitHub Desktop.
Save weshouman/53dbe6d4343c3cd023fa to your computer and use it in GitHub Desktop.
[GIT files basics] #vcs
#tracked ones
git ls-tree -r master --name-only
#this one works too!
git ls-files
#all files that ever existed
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