Skip to content

Instantly share code, notes, and snippets.

@chasgames
Created September 30, 2022 10:47
Show Gist options
  • Save chasgames/4fabc342f1f4318e0fb88e40dda1953d to your computer and use it in GitHub Desktop.
Save chasgames/4fabc342f1f4318e0fb88e40dda1953d to your computer and use it in GitHub Desktop.
GIT get contents of file
1.1.1.1 = filename
### get commit ids
git --git-dir repo.git log -n 75 -- 1.1.1.1
### get full commit version
git --git-dir repo.git show COMMITID:1.1.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment