mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 19:49:20 +00:00
Update cheatsheets
This commit is contained in:
22
git-prune
Normal file
22
git-prune
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# git prune
|
||||
|
||||
> Git command for pruning all unreachable objects from the object database.
|
||||
> This command is often not used directly but as an internal command that is used by Git gc.
|
||||
> More information: <https://git-scm.com/docs/git-prune>.
|
||||
|
||||
- Report what would be removed by Git prune without removing it:
|
||||
|
||||
`git prune --dry-run`
|
||||
|
||||
- Prune unreachable objects and display what has been pruned to `stdout`:
|
||||
|
||||
`git prune --verbose`
|
||||
|
||||
- Prune unreachable objects while showing progress:
|
||||
|
||||
`git prune --progress`
|
||||
Reference in New Issue
Block a user