--- syntax: bash tags: [ vcs ] --- # Show contents of a file git show revision:path/to/file # Recover a file git restore --source= path/to/file # Find which branches contain a specific commit git branch --contains # Run commands in all existing commit git filter-branch --tree-filter 'shell command' HEAD # Show branches and their commits git show-branch # export to zip git archive --format=zip --output path/to/file