亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱(Name)

git-prune  - 從對(duì)象數(shù)據(jù)庫(kù)中刪除所有不可訪問的對(duì)象

概要

git prune [-n] [-v] [--expire <expire>] [--] [<head>…]

描述

注意

在大多數(shù)情況下,用戶應(yīng)該運(yùn)行 git gc,它調(diào)用 git prune。請(qǐng)參閱下面的“注意”部分。

這將git fsck --unreachable使用所有可用的引用refs/,可選地包含在命令行中指定的其他對(duì)象集合,并修剪來自對(duì)象數(shù)據(jù)庫(kù)的任何這些頭對(duì)象不可訪問的所有解壓縮對(duì)象。另外,它通過運(yùn)行修剪也在包中找到的未打包對(duì)象git prune-packed。它還從 .git / shallow 中刪除任何 ref 無法訪問的條目。

請(qǐng)注意,無法訪問,打包的對(duì)象將保留。如果不需要,請(qǐng)參閱 git-repack [1]。

選項(xiàng)

-n   --dry-run

不要?jiǎng)h除任何東西; 只是報(bào)告它會(huì)刪除什么。

-v   --verbose

報(bào)告所有移除的對(duì)象。

--

不要將更多的參數(shù)解釋為選項(xiàng)。

--expire <time>

只會(huì)過期比<time>更舊的松散對(duì)象。

<head>…

除了我們?nèi)魏我每稍L問的對(duì)象之外,還可以從列出的<head>中保持對(duì)象可訪問。

示例

要修剪未由您的存儲(chǔ)庫(kù)使用的對(duì)象或從您的存儲(chǔ)庫(kù)借用以下內(nèi)容的對(duì)象.git/objects/info/alternates

$ git prune $(cd ../another && git rev-parse --all)

注意

在大多數(shù)情況下,用戶不需要git prune直接調(diào)用,而是應(yīng)該調(diào)用git gc,它可以處理修剪以及許多其他內(nèi)務(wù)處理任務(wù)。

有關(guān)修剪考慮哪些對(duì)象的描述,請(qǐng)參閱git fsck's --unreachable 選項(xiàng)。

也可以看看

git-fsck[1], git-gc[1], git-reflog[1]

Previous article: Next article: