import{s as ts,n as es,o as ss}from"../chunks/scheduler.de5597d1.js";import{S as ls,i as as,e as p,s as a,c as r,h as ns,a as i,d as s,b as n,f as Oe,g as f,j as m,k as ve,l as ps,m as l,n as c,t as g,o as d,p as $}from"../chunks/index.bf1177c2.js";import{C as is,H as o,E as ms}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.cd8e640f.js";import{C as u}from"../chunks/CodeBlock.257e0f66.js";function rs(je){let h,Mt,ut,_t,M,vt,_,jt,v,Te='Hugging Face Hub是一组 Git 存储库。<a href="https://git-scm.com/" rel="nofollow">Git</a>是软件开发中广泛使用的工具，可以在协作工作时轻松对项目进行版本控制。本指南将向您展示如何与 Hub 上的存储库进行交互，特别关注以下内容：',Tt,j,be="<li>创建和删除存储库</li> <li>管理分支和标签</li> <li>重命名您的存储库</li> <li>更新您的存储库可见性</li> <li>管理存储库的本地副本</li>",bt,y,xe='<p>如果您习惯于使用类似于GitLab/GitHub/Bitbucket等平台，您可能首先想到使用 <code>git</code>命令行工具来克隆存储库（<code>git clone</code>）、提交更改（<code>git add</code> , <code>git commit</code>）并推送它们（<code>git push</code>）。在使用 Hugging Face Hub 时，这是有效的。然而，软件工程和机器学习并不具有相同的要求和工作流程。模型存储库可能会维护大量模型权重文件以适应不同的框架和工具，因此克隆存储库会导致您维护大量占用空间的本地文件夹。因此，使用我们的自定义HTTP方法可能更有效。您可以阅读我们的<a href="../concepts/git_vs_http">git与HTTP相比较</a>解释页面以获取更多详细信息</p>',xt,T,Je='如果你想在Hub上创建和管理一个仓库，你的计算机必须处于登录状态。如果尚未登录，请参考<a href="../quick-start#login">此部分</a>。在本指南的其余部分，我们将假设你的计算机已登录',Jt,b,wt,x,we="第一步是了解如何创建和删除仓库。你只能管理你拥有的仓库（在你的用户名命名空间下）或者你具有写入权限的组织中的仓库",Gt,J,Ct,w,Ge="使用 <code>create_repo()</code> 创建一个空仓库，并通过 <code>repo_id</code>参数为其命名 <code>repo_id</code>是你的命名空间，后面跟着仓库名称：<code>username_or_org/repo_name</code>",Zt,G,Ce="运行以下代码，以创建仓库：",kt,C,Ht,Z,Ze="默认情况下，<code>create_repo()</code> 会创建一个模型仓库。但是你可以使用 <code>repo_type</code>参数来指定其他仓库类型。例如，如果你想创建一个数据集仓库",Xt,k,ke="请运行以下代码：",Ut,H,Yt,X,He="创建仓库时，你可以使用 <code>private</code>参数设置仓库的可见性",Lt,U,Xe="请运行以下代码",qt,Y,Bt,L,Ue="如果你想在以后更改仓库的可见性，你可以使用<code>update_repo_settings()</code> 函数",Wt,q,Rt,B,Ye="使用 <code>delete_repo()</code> 删除一个仓库。确保你确实想要删除仓库，因为这是一个不可逆转的过程！做完上述过程后，指定你想要删除的仓库的 <code>repo_id</code>",Pt,W,Le="请运行以下代码：",Nt,R,It,P,Vt,N,qe="在某些情况下，你可能想要复制别人的仓库并根据自己的用例进行调整。对于 Spaces，你可以使用 <code>duplicate_space()</code> 方法来实现。它将复制整个仓库。",St,I,Be='你仍然需要配置自己的设置（硬件和密钥）。查看我们的<a href="./manage-spaces">管理你的Space指南</a>以获取更多详细信息。',Ft,V,We="请运行以下代码：",Qt,S,zt,F,Et,Q,Re="既然您已经创建了您的存储库，您现在也可以推送更改至其中并从中下载文件",Kt,z,Pe='这两个主题有它们自己的指南。请<a href="./upload">上传指南</a> 和<a href="./download">下载指南</a>来学习如何使用您的存储库。',Dt,E,At,K,Ne='Git存储库通常使用分支来存储同一存储库的不同版本。标签也可以用于标记存储库的特定状态，例如，在发布版本这个情况下。更一般地说，分支和标签被称为<a href="https://git-scm.com/book/en/v2/Git-Internals-Git-References" rel="nofollow">git引用</a>.',Ot,D,te,A,Ie="你可以使用<code>create_branch()</code>和<code>create_tag()</code>来创建新的分支和标签:",ee,O,Ve="请运行以下代码：",se,tt,le,et,Se="同时,你可以以相同的方式使用 <code>delete_branch()</code> 和 <code>delete_tag()</code> 函数来删除分支或标签",ae,st,ne,lt,Fe=`你还可以使用 <code>list_repo_refs()</code> 列出存储库中的现有 Git 引用
请运行以下代码：`,pe,at,ie,nt,me,pt,Qe="存储库具有一些可配置的设置。大多数情况下，您通常会在浏览器中的存储库设置页面上手动配置这些设置。要配置存储库，您必须具有对其的写访问权限（拥有它或属于组织）。在本节中，我们将看到您还可以使用 <code>huggingface_hub</code> 在编程方式上配置的设置。",re,it,ze='一些设置是特定于 Spaces（硬件、环境变量等）的。要配置这些设置，请参考我们的<a href="../guides/manage-spaces">管理Spaces</a>指南。',fe,mt,ce,rt,Ee="一个存储库可以是公共的或私有的。私有存储库仅对您或存储库所在组织的成员可见。",ge,ft,Ke="请运行以下代码将存储库更改为私有：",de,ct,$e,gt,oe,dt,De='您可以使用 <code>move_repo()</code> 在 Hub 上重命名您的存储库。使用这种方法，您还可以将存储库从一个用户移动到一个组织。在这样做时，有一些<a href="https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo" rel="nofollow">限制</a>需要注意。例如，您不能将存储库转移到另一个用户。',he,$t,Ae="请运行以下代码：",ue,ot,ye,ht,Me,yt,_e;return M=new is({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),_=new o({props:{title:"创建和管理存储库",local:"创建和管理存储库",headingTag:"h1"}}),b=new o({props:{title:"仓库创建和删除",local:"仓库创建和删除",headingTag:"h2"}}),J=new o({props:{title:"创建一个仓库",local:"创建一个仓库",headingTag:"h3"}}),C=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9yZXBvJTBBY3JlYXRlX3JlcG8oJTIybHlzYW5kcmUlMkZ0ZXN0LW1vZGVsJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo
<span class="hljs-meta">&gt;&gt;&gt; </span>create_repo(<span class="hljs-string">&quot;lysandre/test-model&quot;</span>)
<span class="hljs-string">&#x27;https://huggingface.co/lysandre/test-model&#x27;</span>`,wrap:!1}}),H=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9yZXBvJTBBY3JlYXRlX3JlcG8oJTIybHlzYW5kcmUlMkZ0ZXN0LWRhdGFzZXQlMjIlMkMlMjByZXBvX3R5cGUlM0QlMjJkYXRhc2V0JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo
<span class="hljs-meta">&gt;&gt;&gt; </span>create_repo(<span class="hljs-string">&quot;lysandre/test-dataset&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)
<span class="hljs-string">&#x27;https://huggingface.co/datasets/lysandre/test-dataset&#x27;</span>`,wrap:!1}}),Y=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9yZXBvJTBBY3JlYXRlX3JlcG8oJTIybHlzYW5kcmUlMkZ0ZXN0LXByaXZhdGUlMjIlMkMlMjBwcml2YXRlJTNEVHJ1ZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_repo
<span class="hljs-meta">&gt;&gt;&gt; </span>create_repo(<span class="hljs-string">&quot;lysandre/test-private&quot;</span>, private=<span class="hljs-literal">True</span>)`,wrap:!1}}),q=new o({props:{title:"删除一个仓库",local:"删除一个仓库",headingTag:"h3"}}),R=new u({props:{code:"ZGVsZXRlX3JlcG8ocmVwb19pZCUzRCUyMmx5c2FuZHJlJTJGbXktY29ycnVwdGVkLWRhdGFzZXQlMjIlMkMlMjByZXBvX3R5cGUlM0QlMjJkYXRhc2V0JTIyKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>delete_repo(repo_id=<span class="hljs-string">&quot;lysandre/my-corrupted-dataset&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)',wrap:!1}}),P=new o({props:{title:"克隆一个仓库（仅适用于 Spaces）",local:"克隆一个仓库仅适用于-spaces",headingTag:"h3"}}),S=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGR1cGxpY2F0ZV9zcGFjZSUwQWR1cGxpY2F0ZV9zcGFjZSglMjJtdWx0aW1vZGFsYXJ0JTJGZHJlYW1ib290aC10cmFpbmluZyUyMiUyQyUyMHByaXZhdGUlM0RGYWxzZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> duplicate_space
<span class="hljs-meta">&gt;&gt;&gt; </span>duplicate_space(<span class="hljs-string">&quot;multimodalart/dreambooth-training&quot;</span>, private=<span class="hljs-literal">False</span>)
RepoUrl(<span class="hljs-string">&#x27;https://huggingface.co/spaces/nateraw/dreambooth-training&#x27;</span>,...)`,wrap:!1}}),F=new o({props:{title:"上传和下载文件",local:"上传和下载文件",headingTag:"h2"}}),E=new o({props:{title:"分支和标签",local:"分支和标签",headingTag:"h2"}}),D=new o({props:{title:"创建分支和标签",local:"创建分支和标签",headingTag:"h3"}}),tt=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9icmFuY2glMkMlMjBjcmVhdGVfdGFnJTBBJTBBY3JlYXRlX2JyYW5jaCglMjJNYXR0aGlqcyUyRnNwZWVjaHQ1LXR0cy1kZW1vJTIyJTJDJTIwcmVwb190eXBlJTNEJTIyc3BhY2UlMjIlMkMlMjBicmFuY2glM0QlMjJoYW5kbGUtZG9nLXNwZWFrZXIlMjIpJTBBJTBBY3JlYXRlX2JyYW5jaCglMjJiaWdjb2RlJTJGdGhlLXN0YWNrJTIyJTJDJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiUyQyUyMHJldmlzaW9uJTNEJTIydjAuMS1yZWxlYXNlJTIyJTJDJTIwdGFnJTNEJTIydjAuMS4xJTIyJTJDJTIwdGFnX21lc3NhZ2UlM0QlMjJCdW1wJTIwcmVsZWFzZSUyMHZlcnNpb24uJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> create_branch, create_tag

<span class="hljs-comment"># Create a branch on a Space repo from \`main\` branch</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>create_branch(<span class="hljs-string">&quot;Matthijs/speecht5-tts-demo&quot;</span>, repo_type=<span class="hljs-string">&quot;space&quot;</span>, branch=<span class="hljs-string">&quot;handle-dog-speaker&quot;</span>)

<span class="hljs-comment"># Create a tag on a Dataset repo from \`v0.1-release\` branch</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>create_branch(<span class="hljs-string">&quot;bigcode/the-stack&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>, revision=<span class="hljs-string">&quot;v0.1-release&quot;</span>, tag=<span class="hljs-string">&quot;v0.1.1&quot;</span>, tag_message=<span class="hljs-string">&quot;Bump release version.&quot;</span>)`,wrap:!1}}),st=new o({props:{title:"列出所有的分支和标签",local:"列出所有的分支和标签",headingTag:"h3"}}),at=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb19yZWZzJTBBYXBpLmxpc3RfcmVwb19yZWZzKCUyMmJpZ2NvZGUlMkZ0aGUtc3RhY2slMjIlMkMlMjByZXBvX3R5cGUlM0QlMjJkYXRhc2V0JTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> list_repo_refs
<span class="hljs-meta">&gt;&gt;&gt; </span>api.list_repo_refs(<span class="hljs-string">&quot;bigcode/the-stack&quot;</span>, repo_type=<span class="hljs-string">&quot;dataset&quot;</span>)
GitRefs(
   branches=[
         GitRefInfo(name=<span class="hljs-string">&#x27;main&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/main&#x27;</span>, target_commit=<span class="hljs-string">&#x27;18edc1591d9ce72aa82f56c4431b3c969b210ae3&#x27;</span>),
         GitRefInfo(name=<span class="hljs-string">&#x27;v1.1.a1&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/heads/v1.1.a1&#x27;</span>, target_commit=<span class="hljs-string">&#x27;f9826b862d1567f3822d3d25649b0d6d22ace714&#x27;</span>)
   ],
   converts=[],
   tags=[
         GitRefInfo(name=<span class="hljs-string">&#x27;v1.0&#x27;</span>, ref=<span class="hljs-string">&#x27;refs/tags/v1.0&#x27;</span>, target_commit=<span class="hljs-string">&#x27;c37a8cd1e382064d8aced5e05543c5f7753834da&#x27;</span>)
   ]
)`,wrap:!1}}),nt=new o({props:{title:"修改存储库设置",local:"修改存储库设置",headingTag:"h2"}}),mt=new o({props:{title:"更新可见性",local:"更新可见性",headingTag:"h3"}}),ct=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHVwZGF0ZV9yZXBvX3NldHRpbmdzJTBBdXBkYXRlX3JlcG9fc2V0dGluZ3MocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwcml2YXRlJTNEVHJ1ZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> update_repo_settings
<span class="hljs-meta">&gt;&gt;&gt; </span>update_repo_settings(repo_id=repo_id, private=<span class="hljs-literal">True</span>)`,wrap:!1}}),gt=new o({props:{title:"重命名您的存储库",local:"重命名您的存储库",headingTag:"h3"}}),ot=new u({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMG1vdmVfcmVwbyUwQW1vdmVfcmVwbyhmcm9tX2lkJTNEJTIyV2F1cGxpbiUyRmNvb2wtbW9kZWwlMjIlMkMlMjB0b19pZCUzRCUyMmh1Z2dpbmdmYWNlJTJGY29vbC1tb2RlbCUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> move_repo
<span class="hljs-meta">&gt;&gt;&gt; </span>move_repo(from_id=<span class="hljs-string">&quot;Wauplin/cool-model&quot;</span>, to_id=<span class="hljs-string">&quot;huggingface/cool-model&quot;</span>)`,wrap:!1}}),ht=new ms({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/cn/guides/repository.md"}}),{c(){h=p("meta"),Mt=a(),ut=p("p"),_t=a(),r(M.$$.fragment),vt=a(),r(_.$$.fragment),jt=a(),v=p("p"),v.innerHTML=Te,Tt=a(),j=p("ul"),j.innerHTML=be,bt=a(),y=p("blockquote"),y.innerHTML=xe,xt=a(),T=p("p"),T.innerHTML=Je,Jt=a(),r(b.$$.fragment),wt=a(),x=p("p"),x.textContent=we,Gt=a(),r(J.$$.fragment),Ct=a(),w=p("p"),w.innerHTML=Ge,Zt=a(),G=p("p"),G.textContent=Ce,kt=a(),r(C.$$.fragment),Ht=a(),Z=p("p"),Z.innerHTML=Ze,Xt=a(),k=p("p"),k.textContent=ke,Ut=a(),r(H.$$.fragment),Yt=a(),X=p("p"),X.innerHTML=He,Lt=a(),U=p("p"),U.textContent=Xe,qt=a(),r(Y.$$.fragment),Bt=a(),L=p("p"),L.innerHTML=Ue,Wt=a(),r(q.$$.fragment),Rt=a(),B=p("p"),B.innerHTML=Ye,Pt=a(),W=p("p"),W.textContent=Le,Nt=a(),r(R.$$.fragment),It=a(),r(P.$$.fragment),Vt=a(),N=p("p"),N.innerHTML=qe,St=a(),I=p("p"),I.innerHTML=Be,Ft=a(),V=p("p"),V.textContent=We,Qt=a(),r(S.$$.fragment),zt=a(),r(F.$$.fragment),Et=a(),Q=p("p"),Q.textContent=Re,Kt=a(),z=p("p"),z.innerHTML=Pe,Dt=a(),r(E.$$.fragment),At=a(),K=p("p"),K.innerHTML=Ne,Ot=a(),r(D.$$.fragment),te=a(),A=p("p"),A.innerHTML=Ie,ee=a(),O=p("p"),O.textContent=Ve,se=a(),r(tt.$$.fragment),le=a(),et=p("p"),et.innerHTML=Se,ae=a(),r(st.$$.fragment),ne=a(),lt=p("p"),lt.innerHTML=Fe,pe=a(),r(at.$$.fragment),ie=a(),r(nt.$$.fragment),me=a(),pt=p("p"),pt.innerHTML=Qe,re=a(),it=p("p"),it.innerHTML=ze,fe=a(),r(mt.$$.fragment),ce=a(),rt=p("p"),rt.textContent=Ee,ge=a(),ft=p("p"),ft.textContent=Ke,de=a(),r(ct.$$.fragment),$e=a(),r(gt.$$.fragment),oe=a(),dt=p("p"),dt.innerHTML=De,he=a(),$t=p("p"),$t.textContent=Ae,ue=a(),r(ot.$$.fragment),ye=a(),r(ht.$$.fragment),Me=a(),yt=p("p"),this.h()},l(t){const e=ns("svelte-u9bgzb",document.head);h=i(e,"META",{name:!0,content:!0}),e.forEach(s),Mt=n(t),ut=i(t,"P",{}),Oe(ut).forEach(s),_t=n(t),f(M.$$.fragment,t),vt=n(t),f(_.$$.fragment,t),jt=n(t),v=i(t,"P",{"data-svelte-h":!0}),m(v)!=="svelte-6jc6h2"&&(v.innerHTML=Te),Tt=n(t),j=i(t,"UL",{"data-svelte-h":!0}),m(j)!=="svelte-1rkixvd"&&(j.innerHTML=be),bt=n(t),y=i(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),m(y)!=="svelte-1dqlgb5"&&(y.innerHTML=xe),xt=n(t),T=i(t,"P",{"data-svelte-h":!0}),m(T)!=="svelte-130f7ws"&&(T.innerHTML=Je),Jt=n(t),f(b.$$.fragment,t),wt=n(t),x=i(t,"P",{"data-svelte-h":!0}),m(x)!=="svelte-16cmx63"&&(x.textContent=we),Gt=n(t),f(J.$$.fragment,t),Ct=n(t),w=i(t,"P",{"data-svelte-h":!0}),m(w)!=="svelte-8amt9y"&&(w.innerHTML=Ge),Zt=n(t),G=i(t,"P",{"data-svelte-h":!0}),m(G)!=="svelte-18c2bea"&&(G.textContent=Ce),kt=n(t),f(C.$$.fragment,t),Ht=n(t),Z=i(t,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-avo5q4"&&(Z.innerHTML=Ze),Xt=n(t),k=i(t,"P",{"data-svelte-h":!0}),m(k)!=="svelte-17cddf3"&&(k.textContent=ke),Ut=n(t),f(H.$$.fragment,t),Yt=n(t),X=i(t,"P",{"data-svelte-h":!0}),m(X)!=="svelte-bv1lp1"&&(X.innerHTML=He),Lt=n(t),U=i(t,"P",{"data-svelte-h":!0}),m(U)!=="svelte-pxhsy5"&&(U.textContent=Xe),qt=n(t),f(Y.$$.fragment,t),Bt=n(t),L=i(t,"P",{"data-svelte-h":!0}),m(L)!=="svelte-1icm7ua"&&(L.innerHTML=Ue),Wt=n(t),f(q.$$.fragment,t),Rt=n(t),B=i(t,"P",{"data-svelte-h":!0}),m(B)!=="svelte-d1y8rp"&&(B.innerHTML=Ye),Pt=n(t),W=i(t,"P",{"data-svelte-h":!0}),m(W)!=="svelte-17cddf3"&&(W.textContent=Le),Nt=n(t),f(R.$$.fragment,t),It=n(t),f(P.$$.fragment,t),Vt=n(t),N=i(t,"P",{"data-svelte-h":!0}),m(N)!=="svelte-5wxrln"&&(N.innerHTML=qe),St=n(t),I=i(t,"P",{"data-svelte-h":!0}),m(I)!=="svelte-vcxod7"&&(I.innerHTML=Be),Ft=n(t),V=i(t,"P",{"data-svelte-h":!0}),m(V)!=="svelte-17cddf3"&&(V.textContent=We),Qt=n(t),f(S.$$.fragment,t),zt=n(t),f(F.$$.fragment,t),Et=n(t),Q=i(t,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-wnk6wc"&&(Q.textContent=Re),Kt=n(t),z=i(t,"P",{"data-svelte-h":!0}),m(z)!=="svelte-1s2duhn"&&(z.innerHTML=Pe),Dt=n(t),f(E.$$.fragment,t),At=n(t),K=i(t,"P",{"data-svelte-h":!0}),m(K)!=="svelte-17dpix5"&&(K.innerHTML=Ne),Ot=n(t),f(D.$$.fragment,t),te=n(t),A=i(t,"P",{"data-svelte-h":!0}),m(A)!=="svelte-1r3n1ij"&&(A.innerHTML=Ie),ee=n(t),O=i(t,"P",{"data-svelte-h":!0}),m(O)!=="svelte-17cddf3"&&(O.textContent=Ve),se=n(t),f(tt.$$.fragment,t),le=n(t),et=i(t,"P",{"data-svelte-h":!0}),m(et)!=="svelte-1g8ie6w"&&(et.innerHTML=Se),ae=n(t),f(st.$$.fragment,t),ne=n(t),lt=i(t,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-xhfmnh"&&(lt.innerHTML=Fe),pe=n(t),f(at.$$.fragment,t),ie=n(t),f(nt.$$.fragment,t),me=n(t),pt=i(t,"P",{"data-svelte-h":!0}),m(pt)!=="svelte-1lxhrs9"&&(pt.innerHTML=Qe),re=n(t),it=i(t,"P",{"data-svelte-h":!0}),m(it)!=="svelte-rxafay"&&(it.innerHTML=ze),fe=n(t),f(mt.$$.fragment,t),ce=n(t),rt=i(t,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-1wb0042"&&(rt.textContent=Ee),ge=n(t),ft=i(t,"P",{"data-svelte-h":!0}),m(ft)!=="svelte-14uqd9f"&&(ft.textContent=Ke),de=n(t),f(ct.$$.fragment,t),$e=n(t),f(gt.$$.fragment,t),oe=n(t),dt=i(t,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-1d8qtcd"&&(dt.innerHTML=De),he=n(t),$t=i(t,"P",{"data-svelte-h":!0}),m($t)!=="svelte-17cddf3"&&($t.textContent=Ae),ue=n(t),f(ot.$$.fragment,t),ye=n(t),f(ht.$$.fragment,t),Me=n(t),yt=i(t,"P",{}),Oe(yt).forEach(s),this.h()},h(){ve(h,"name","hf:doc:metadata"),ve(h,"content",fs),ve(y,"class","warning")},m(t,e){ps(document.head,h),l(t,Mt,e),l(t,ut,e),l(t,_t,e),c(M,t,e),l(t,vt,e),c(_,t,e),l(t,jt,e),l(t,v,e),l(t,Tt,e),l(t,j,e),l(t,bt,e),l(t,y,e),l(t,xt,e),l(t,T,e),l(t,Jt,e),c(b,t,e),l(t,wt,e),l(t,x,e),l(t,Gt,e),c(J,t,e),l(t,Ct,e),l(t,w,e),l(t,Zt,e),l(t,G,e),l(t,kt,e),c(C,t,e),l(t,Ht,e),l(t,Z,e),l(t,Xt,e),l(t,k,e),l(t,Ut,e),c(H,t,e),l(t,Yt,e),l(t,X,e),l(t,Lt,e),l(t,U,e),l(t,qt,e),c(Y,t,e),l(t,Bt,e),l(t,L,e),l(t,Wt,e),c(q,t,e),l(t,Rt,e),l(t,B,e),l(t,Pt,e),l(t,W,e),l(t,Nt,e),c(R,t,e),l(t,It,e),c(P,t,e),l(t,Vt,e),l(t,N,e),l(t,St,e),l(t,I,e),l(t,Ft,e),l(t,V,e),l(t,Qt,e),c(S,t,e),l(t,zt,e),c(F,t,e),l(t,Et,e),l(t,Q,e),l(t,Kt,e),l(t,z,e),l(t,Dt,e),c(E,t,e),l(t,At,e),l(t,K,e),l(t,Ot,e),c(D,t,e),l(t,te,e),l(t,A,e),l(t,ee,e),l(t,O,e),l(t,se,e),c(tt,t,e),l(t,le,e),l(t,et,e),l(t,ae,e),c(st,t,e),l(t,ne,e),l(t,lt,e),l(t,pe,e),c(at,t,e),l(t,ie,e),c(nt,t,e),l(t,me,e),l(t,pt,e),l(t,re,e),l(t,it,e),l(t,fe,e),c(mt,t,e),l(t,ce,e),l(t,rt,e),l(t,ge,e),l(t,ft,e),l(t,de,e),c(ct,t,e),l(t,$e,e),c(gt,t,e),l(t,oe,e),l(t,dt,e),l(t,he,e),l(t,$t,e),l(t,ue,e),c(ot,t,e),l(t,ye,e),c(ht,t,e),l(t,Me,e),l(t,yt,e),_e=!0},p:es,i(t){_e||(g(M.$$.fragment,t),g(_.$$.fragment,t),g(b.$$.fragment,t),g(J.$$.fragment,t),g(C.$$.fragment,t),g(H.$$.fragment,t),g(Y.$$.fragment,t),g(q.$$.fragment,t),g(R.$$.fragment,t),g(P.$$.fragment,t),g(S.$$.fragment,t),g(F.$$.fragment,t),g(E.$$.fragment,t),g(D.$$.fragment,t),g(tt.$$.fragment,t),g(st.$$.fragment,t),g(at.$$.fragment,t),g(nt.$$.fragment,t),g(mt.$$.fragment,t),g(ct.$$.fragment,t),g(gt.$$.fragment,t),g(ot.$$.fragment,t),g(ht.$$.fragment,t),_e=!0)},o(t){d(M.$$.fragment,t),d(_.$$.fragment,t),d(b.$$.fragment,t),d(J.$$.fragment,t),d(C.$$.fragment,t),d(H.$$.fragment,t),d(Y.$$.fragment,t),d(q.$$.fragment,t),d(R.$$.fragment,t),d(P.$$.fragment,t),d(S.$$.fragment,t),d(F.$$.fragment,t),d(E.$$.fragment,t),d(D.$$.fragment,t),d(tt.$$.fragment,t),d(st.$$.fragment,t),d(at.$$.fragment,t),d(nt.$$.fragment,t),d(mt.$$.fragment,t),d(ct.$$.fragment,t),d(gt.$$.fragment,t),d(ot.$$.fragment,t),d(ht.$$.fragment,t),_e=!1},d(t){t&&(s(Mt),s(ut),s(_t),s(vt),s(jt),s(v),s(Tt),s(j),s(bt),s(y),s(xt),s(T),s(Jt),s(wt),s(x),s(Gt),s(Ct),s(w),s(Zt),s(G),s(kt),s(Ht),s(Z),s(Xt),s(k),s(Ut),s(Yt),s(X),s(Lt),s(U),s(qt),s(Bt),s(L),s(Wt),s(Rt),s(B),s(Pt),s(W),s(Nt),s(It),s(Vt),s(N),s(St),s(I),s(Ft),s(V),s(Qt),s(zt),s(Et),s(Q),s(Kt),s(z),s(Dt),s(At),s(K),s(Ot),s(te),s(A),s(ee),s(O),s(se),s(le),s(et),s(ae),s(ne),s(lt),s(pe),s(ie),s(me),s(pt),s(re),s(it),s(fe),s(ce),s(rt),s(ge),s(ft),s(de),s($e),s(oe),s(dt),s(he),s($t),s(ue),s(ye),s(Me),s(yt)),s(h),$(M,t),$(_,t),$(b,t),$(J,t),$(C,t),$(H,t),$(Y,t),$(q,t),$(R,t),$(P,t),$(S,t),$(F,t),$(E,t),$(D,t),$(tt,t),$(st,t),$(at,t),$(nt,t),$(mt,t),$(ct,t),$(gt,t),$(ot,t),$(ht,t)}}}const fs='{"title":"创建和管理存储库","local":"创建和管理存储库","sections":[{"title":"仓库创建和删除","local":"仓库创建和删除","sections":[{"title":"创建一个仓库","local":"创建一个仓库","sections":[],"depth":3},{"title":"删除一个仓库","local":"删除一个仓库","sections":[],"depth":3},{"title":"克隆一个仓库（仅适用于 Spaces）","local":"克隆一个仓库仅适用于-spaces","sections":[],"depth":3}],"depth":2},{"title":"上传和下载文件","local":"上传和下载文件","sections":[],"depth":2},{"title":"分支和标签","local":"分支和标签","sections":[{"title":"创建分支和标签","local":"创建分支和标签","sections":[],"depth":3},{"title":"列出所有的分支和标签","local":"列出所有的分支和标签","sections":[],"depth":3}],"depth":2},{"title":"修改存储库设置","local":"修改存储库设置","sections":[{"title":"更新可见性","local":"更新可见性","sections":[],"depth":3},{"title":"重命名您的存储库","local":"重命名您的存储库","sections":[],"depth":3}],"depth":2}],"depth":1}';function cs(je){return ss(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hs extends ls{constructor(h){super(),as(this,h,cs,rs,ts,{})}}export{hs as component};
