Merge branch 'jm/doc-ref-prune'
* jm/doc-ref-prune: Documentation: fix git-prune example usage Documentation: remove --prune from pack-refs examples
This commit is contained in:
commit
677f32c79f
@ -33,8 +33,8 @@ Subsequent updates to branches always create new files under
|
||||
`$GIT_DIR/refs` directory hierarchy.
|
||||
|
||||
A recommended practice to deal with a repository with too many
|
||||
refs is to pack its refs with `--all --prune` once, and
|
||||
occasionally run `git pack-refs --prune`. Tags are by
|
||||
refs is to pack its refs with `--all` once, and
|
||||
occasionally run `git pack-refs`. Tags are by
|
||||
definition stationary and are not expected to change. Branch
|
||||
heads will be packed with the initial `pack-refs --all`, but
|
||||
only the currently active branch heads will become unpacked,
|
||||
|
@ -59,7 +59,7 @@ borrows from your repository via its
|
||||
`.git/objects/info/alternates`:
|
||||
|
||||
------------
|
||||
$ git prune $(cd ../another && $(git rev-parse --all))
|
||||
$ git prune $(cd ../another && git rev-parse --all)
|
||||
------------
|
||||
|
||||
Notes
|
||||
|
Loading…
Reference in New Issue
Block a user