diff options
Diffstat (limited to 'git')
-rw-r--r-- | git | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -6,6 +6,12 @@ tags: [ vcs ] # Show contents of a file git show revision:path/to/file +# Recover a file +git restore --source=<commit or branch> path/to/file + +# Find which branches contain a specific commit +git branch --contains <commit hash> + # Run commands in all existing commit git filter-branch --tree-filter 'shell command' HEAD |