Show file at specific commit

Print the content of a file at a historical commit

git show <sha>:path/to/file

tool
git45 commands
tags
git

More git commands

  • git log --oneline --graph --decorate --all | head -40

    Compact visual branch graph of the entire repo

  • git log -S 'password' --oneline --all

    Find all commits that added or removed the string 'password'

  • git commit --amend --no-edit

    Include staged changes in last commit without changing message

  • git push origin --delete feature/old-branch

    Remove a branch from the remote repository

  • git clean -fdx

    Remove untracked files and directories (incl. gitignored)

all 45 git commands