Git Prune
Git Prune
DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://github.githubassets.com">
<link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
<link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
<link rel="dns-prefetch" href="https://avatars2.githubusercontent.com">
<link rel="dns-prefetch" href="https://avatars3.githubusercontent.com">
<link rel="dns-prefetch" href="https://github-cloud.s3.amazonaws.com">
<link rel="dns-prefetch" href="https://user-images.githubusercontent.com/">
<meta name="twitter:image:src"
content="https://avatars1.githubusercontent.com/u/18133?s=400&v=4" /><meta
name="twitter:site" content="@github" /><meta name="twitter:card" content="summary"
/><meta name="twitter:title" content="git/git" /><meta name="twitter:description"
content="Git Source Code Mirror - This is a publish-only repository and all pull
requests are ignored. Please follow Documentation/SubmittingPatches procedure for
any of your improvements. - git/git" />
<meta property="og:image"
content="https://avatars1.githubusercontent.com/u/18133?s=400&v=4" /><meta
property="og:site_name" content="GitHub" /><meta property="og:type"
content="object" /><meta property="og:title" content="git/git" /><meta
property="og:url" content="https://github.com/git/git" /><meta
property="og:description" content="Git Source Code Mirror - This is a publish-only
repository and all pull requests are ignored. Please follow
Documentation/SubmittingPatches procedure for any of your improvements. -
git/git" />
<meta name="google-site-verification"
content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
<meta name="google-site-verification" content="ZzhVyEFwb7w3e0-
uOTltm8Jsck2F5StVihD0exw2fsA">
<meta name="google-site-verification" content="GXs5KoUUkNCoaAZn7wPN-
t01Pywp9M3sEjnt_3_ZWPc">
<meta name="enabled-features"
content="MARKETPLACE_FEATURED_BLOG_POSTS,MARKETPLACE_INVOICED_BILLING,MARKETPLACE_S
OCIAL_PROOF_CUSTOMERS,MARKETPLACE_TRENDING_SOCIAL_PROOF,MARKETPLACE_RECOMMENDATIONS
,MARKETPLACE_PENDING_INSTALLATIONS,RELATED_ISSUES">
<link rel="canonical"
href="https://github.com/git/git/blob/master/Documentation/git-prune.txt" data-
pjax-transient>
<meta name="browser-stats-url"
content="https://api.github.com/_private/browser/stats">
<meta name="browser-errors-url"
content="https://api.github.com/_private/browser/errors">
</head>
</div>
</ul>
</ul>
</div>
</label>
</form> </div>
</div>
</div>
<a href="/login?return_to=%2Fgit%2Fgit%2Fblob%2Fmaster%2FDocumentation
%2Fgit-prune.txt"
class="HeaderMenu-link no-underline mr-3"
data-hydro-
click="{"event_type":"authentication.click","payload"
:{"location_in_page":"site header
menu","repository_id":null,"auth_type":"SIGN_UP"
,"originating_url":"https://github.com/git/git/blob/master/Documenta
tion/git-prune.txt","user_id":null}}" data-hydro-click-
hmac="657d5859c86e54c6e635fe305b43cac1305e077144f2bea504704f5f2df68e31"
data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">
Sign in
</a>
<a href="/join?source=header-repo&source_repo=git%2Fgit"
class="HeaderMenu-link d-inline-block no-underline border border-gray-
dark rounded-1 px-2 py-1"
data-hydro-
click="{"event_type":"authentication.click","payload"
:{"location_in_page":"site header
menu","repository_id":null,"auth_type":"SIGN_UP"
,"originating_url":"https://github.com/git/git/blob/master/Documenta
tion/git-prune.txt","user_id":null}}" data-hydro-click-
hmac="657d5859c86e54c6e635fe305b43cac1305e077144f2bea504704f5f2df68e31"
data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">
Sign up
</a>
</div>
</div>
</div>
</header>
</div>
<div id="js-flash-container">
<template class="js-flash-template">
<div class="flash flash-full js-flash-template-container">
<div class="container-lg px-2" >
<button class="flash-close js-flash-close" type="button" aria-label="Dismiss
this message">
<svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12"
height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48
1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48
1.48L7.48 8z"></path></svg>
</button>
<div class="js-flash-template-message"></div>
</div>
</div>
</template>
</div>
</h1>
</div>
<li>
<li>
<a class="btn btn-sm btn-with-count tooltipped tooltipped-s" aria-
label="You must be signed in to star a repository" rel="nofollow" data-hydro-
click="{"event_type":"authentication.click","payload"
:{"location_in_page":"star
button","repository_id":36502,"auth_type":"LOG_IN&quo
t;,"originating_url":"https://github.com/git/git/blob/master/Documen
tation/git-prune.txt","user_id":null}}" data-hydro-click-
hmac="12a9c20412b393d38211245abe0e9fdd2f02a39facb04b96dae7ca3b64294804"
href="/login?return_to=%2Fgit%2Fgit">
<svg height="16" class="octicon octicon-star v-align-text-bottom"
vertical_align="text_bottom" viewBox="0 0 14 16" version="1.1" width="14" aria-
hidden="true"><path fill-rule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6
3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"></path></svg>
Star
</a>
<a class="social-count js-social-count" href="/git/git/stargazers"
aria-label="31928 users starred this repository">
31.9k
</a>
</li>
<li>
<a class="btn btn-sm btn-with-count tooltipped tooltipped-s" aria-label="You
must be signed in to fork a repository" rel="nofollow" data-hydro-
click="{"event_type":"authentication.click","payload"
:{"location_in_page":"repo details fork
button","repository_id":36502,"auth_type":"LOG_IN&quo
t;,"originating_url":"https://github.com/git/git/blob/master/Documen
tation/git-prune.txt","user_id":null}}" data-hydro-click-
hmac="5ac73ddbc77997904142542307ac17d91a0915f355c8893005e03d83c2eef753"
href="/login?return_to=%2Fgit%2Fgit">
<svg class="octicon octicon-repo-forked v-align-text-bottom" viewBox="0 0
10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-
rule="evenodd" d="M8 1a1.993 1.993 0 00-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 002
1a1.993 1.993 0 00-1 3.72V6.5l3 3v1.78A1.993 1.993 0 005 15a1.993 1.993 0 001-
3.72V9.5l3-3V4.72A1.993 1.993 0 008 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-
1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2
0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-
1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2
1.2z"></path></svg>
Fork
</a>
<a href="/git/git/network/members" class="social-count"
aria-label="18625 users forked this repository">
18.6k
</a>
</li>
</ul>
</div>
</nav>
</nav>
</div>
</div>
<include-fragment src="/git/git/contributors/master/Documentation/git-
prune.txt" class="Box Box--condensed commit-loader">
<div class="Box-body bg-blue-light f6">
Fetching contributors…
</div>
<div class="BtnGroup">
<a id="raw-url" class="btn btn-sm BtnGroup-item"
href="/git/git/raw/master/Documentation/git-prune.txt">Raw</a>
<a class="btn btn-sm js-update-url-with-hash BtnGroup-item" data-hotkey="b"
href="/git/git/blame/master/Documentation/git-prune.txt">Blame</a>
<a rel="nofollow" class="btn btn-sm BtnGroup-item"
href="/git/git/commits/master/Documentation/git-prune.txt">History</a>
</div>
<div>
<a class="btn-octicon tooltipped tooltipped-nw js-remove-unless-platform"
data-platforms="windows,mac"
href="https://desktop.github.com"
aria-label="Open this file in GitHub Desktop"
data-ga-click="Repository, open with desktop">
<svg class="octicon octicon-device-desktop" viewBox="0 0 16 16"
version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd"
d="M15 2H1c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5.34c-.25.61-.86 1.39-2.34 2h8c-
1.48-.61-2.09-1.39-2.34-2H15c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm0
9H1V3h14v8z"></path></svg>
</a>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<div class="footer container-lg width-full p-responsive" role="contentinfo">
<div class="position-relative d-flex flex-row-reverse flex-lg-row flex-wrap flex-
lg-nowrap flex-justify-center flex-lg-justify-between pt-6 pb-2 mt-6 f6 text-gray
border-top border-gray-light ">
<ul class="list-style-none d-flex flex-wrap col-12 col-lg-5 flex-justify-center
flex-lg-justify-between mb-2 mb-lg-0">
<li class="mr-3 mr-lg-0">© 2020 GitHub, Inc.</li>
<li class="mr-3 mr-lg-0"><a data-ga-click="Footer, go to terms, text:terms"
href="https://github.com/site/terms">Terms</a></li>
<li class="mr-3 mr-lg-0"><a data-ga-click="Footer, go to privacy,
text:privacy" href="https://github.com/site/privacy">Privacy</a></li>
<li class="mr-3 mr-lg-0"><a data-ga-click="Footer, go to security,
text:security" href="https://github.com/security">Security</a></li>
<li class="mr-3 mr-lg-0"><a href="https://githubstatus.com/" data-ga-
click="Footer, go to status, text:status">Status</a></li>
<li><a data-ga-click="Footer, go to help, text:help"
href="https://help.github.com">Help</a></li>
</ul>
</body>
</html>