import{s as js,o as Ts,n as _s}from"../chunks/scheduler.b108d059.js";import{S as bs,i as Js,g as p,s as a,r as f,A as ws,h as i,f as l,c as n,j as Ms,u as c,x as m,k as vs,y as xs,a as s,v as r,d as g,t as $,w as o}from"../chunks/index.008de539.js";import{T as Cs}from"../chunks/Tip.aeb15ab7.js";import{C as h}from"../chunks/CodeBlock.3968c746.js";import{H as u,E as Gs}from"../chunks/EditOnGithub.d1c48e3d.js";function Us(Kt){let d,v='如果您习惯于使用类似于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>解释页面以获取更多详细信息';return{c(){d=p("p"),d.innerHTML=v},l(y){d=i(y,"P",{"data-svelte-h":!0}),m(d)!=="svelte-1gkovu7"&&(d.innerHTML=v)},m(y,Qt){s(y,d,Qt)},p:_s,d(y){y&&l(d)}}}function Zs(Kt){let d,v,y,Qt,j,Dt,T,wl='Hugging Face Hub是一组 Git 存储库。<a href="https://git-scm.com/" rel="nofollow">Git</a>是软件开发中广泛使用的工具，可以在协作工作时轻松对项目进行版本控制。本指南将向您展示如何与 Hub 上的存储库进行交互，特别关注以下内容：',At,_,xl="<li>创建和删除存储库</li> <li>管理分支和标签</li> <li>重命名您的存储库</li> <li>更新您的存储库可见性</li> <li>管理存储库的本地副本</li>",Ot,M,te,b,Cl='如果你想在Hub上创建和管理一个仓库，你的计算机必须处于登录状态。如果尚未登录，请参考<a href="../quick-start#login">此部分</a>。在本指南的其余部分，我们将假设你的计算机已登录',ee,J,le,w,Gl="第一步是了解如何创建和删除仓库。你只能管理你拥有的仓库（在你的用户名命名空间下）或者你具有写入权限的组织中的仓库",se,x,ae,C,Ul="使用 <code>create_repo()</code> 创建一个空仓库，并通过 <code>repo_id</code>参数为其命名 <code>repo_id</code>是你的命名空间，后面跟着仓库名称：<code>username_or_org/repo_name</code>",ne,G,Zl="运行以下代码，以创建仓库：",pe,U,ie,Z,kl="默认情况下，<code>create_repo()</code> 会创建一个模型仓库。但是你可以使用 <code>repo_type</code>参数来指定其他仓库类型。例如，如果你想创建一个数据集仓库",me,k,Xl="请运行以下代码：",fe,X,ce,H,Hl="创建仓库时，你可以使用 <code>private</code>参数设置仓库的可见性",re,Y,Yl="请运行以下代码",ge,R,$e,q,Rl="如果你想在以后更改仓库的可见性，你可以使用<code>update_repo_settings()</code> 函数",oe,L,de,N,ql="使用 <code>delete_repo()</code> 删除一个仓库。确保你确实想要删除仓库，因为这是一个不可逆转的过程！做完上述过程后，指定你想要删除的仓库的 <code>repo_id</code>",he,I,Ll="请运行以下代码：",ue,B,ye,F,Me,W,Nl="在某些情况下，你可能想要复制别人的仓库并根据自己的用例进行调整。对于 Spaces，你可以使用 <code>duplicate_space()</code> 方法来实现。它将复制整个仓库。",ve,V,Il='你仍然需要配置自己的设置（硬件和密钥）。查看我们的<a href="./manage-spaces">管理你的Space指南</a>以获取更多详细信息。',je,P,Bl="请运行以下代码：",Te,S,_e,z,be,Q,Fl="既然您已经创建了您的存储库，您现在也可以推送更改至其中并从中下载文件",Je,E,Wl='这两个主题有它们自己的指南。请<a href="./upload">上传指南</a> 和<a href="./download">下载指南</a>来学习如何使用您的存储库。',we,K,xe,D,Vl='Git存储库通常使用分支来存储同一存储库的不同版本。标签也可以用于标记存储库的特定状态，例如，在发布版本这个情况下。更一般地说，分支和标签被称为<a href="https://git-scm.com/book/en/v2/Git-Internals-Git-References" rel="nofollow">git引用</a>.',Ce,A,Ge,O,Pl="你可以使用<code>create_branch()</code>和<code>create_tag()</code>来创建新的分支和标签:",Ue,tt,Sl="请运行以下代码：",Ze,et,ke,lt,zl="同时,你可以以相同的方式使用 <code>delete_branch()</code> 和 <code>delete_tag()</code> 函数来删除分支或标签",Xe,st,He,at,Ql=`你还可以使用 <code>list_repo_refs()</code> 列出存储库中的现有 Git 引用
请运行以下代码：`,Ye,nt,Re,pt,qe,it,El="存储库具有一些可配置的设置。大多数情况下，您通常会在浏览器中的存储库设置页面上手动配置这些设置。要配置存储库，您必须具有对其的写访问权限（拥有它或属于组织）。在本节中，我们将看到您还可以使用 <code>huggingface_hub</code> 在编程方式上配置的设置。",Le,mt,Kl='一些设置是特定于 Spaces（硬件、环境变量等）的。要配置这些设置，请参考我们的<a href="../guides/manage-spaces">管理Spaces</a>指南。',Ne,ft,Ie,ct,Dl="一个存储库可以是公共的或私有的。私有存储库仅对您或存储库所在组织的成员可见。",Be,rt,Al="请运行以下代码将存储库更改为私有：",Fe,gt,We,$t,Ve,ot,Ol='您可以使用 <code>move_repo()</code> 在 Hub 上重命名您的存储库。使用这种方法，您还可以将存储库从一个用户移动到一个组织。在这样做时，有一些<a href="https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo" rel="nofollow">限制</a>需要注意。例如，您不能将存储库转移到另一个用户。',Pe,dt,ts="请运行以下代码：",Se,ht,ze,ut,Qe,yt,es="上述所有操作都可以通过HTTP请求完成。然而，在某些情况下，您可能希望在本地拥有存储库的副本，并使用您熟悉的Git命令与之交互。",Ee,Mt,ls='<code>Repository</code> 类允许您使用类似于Git命令的函数与Hub上的文件和存储库进行交互。它是对Git和Git-LFS方法的包装，以使用您已经了解和喜爱的Git命令。在开始之前，请确保已安装Git-LFS（请参阅<a href="https://git-lfs.github.com/" rel="nofollow">此处</a>获取安装说明）。',Ke,vt,De,jt,ss="使用本地存储库路径实例化一个 <code>Repository</code> 对象：",Ae,Tt,as="请运行以下代码：",Oe,_t,tl,bt,el,Jt,ns="<code>clone_from</code>参数将一个存储库从Hugging Face存储库ID克隆到由 <code>local_dir</code>参数指定的本地目录：",ll,wt,ps="请运行以下代码：",sl,xt,al,Ct,is="<code>clone_from</code>还可以使用URL克隆存储库：",nl,Gt,ms="请运行以下代码：",pl,Ut,il,Zt,fs="你可以将<code>clone_from</code>参数与<code>create_repo()</code>结合使用，以创建并克隆一个存储库：",ml,kt,cs="请运行以下代码：",fl,Xt,cl,Ht,rs="当你克隆一个存储库时，通过在克隆时指定<code>git_user</code>和<code>git_email</code>参数，你还可以为克隆的存储库配置Git用户名和电子邮件。当用户提交到该存储库时，Git将知道提交的作者是谁。",rl,Yt,gs="请运行以下代码：",gl,Rt,$l,qt,ol,Lt,$s="分支对于协作和实验而不影响当前文件和代码非常重要。使用<code>git_checkout()</code>来在不同的分支之间切换。例如，如果你想从 <code>branch1</code>切换到 <code>branch2</code>：",dl,Nt,os="请运行以下代码：",hl,It,ul,Bt,yl,Ft,ds="<code>git_pull()</code> 允许你使用远程存储库的更改更新当前本地分支：",Ml,Wt,hs="请运行以下代码：",vl,Vt,jl,Pt,us="如果你希望本地的提交发生在你的分支被远程的新提交更新之后，请设置<code>rebase=True</code>：",Tl,St,_l,zt,bl,Et,Jl;return j=new u({props:{title:"创建和管理存储库",local:"创建和管理存储库",headingTag:"h1"}}),M=new Cs({props:{warning:!0,$$slots:{default:[Us]},$$scope:{ctx:Kt}}}),J=new u({props:{title:"仓库创建和删除",local:"仓库创建和删除",headingTag:"h2"}}),x=new u({props:{title:"创建一个仓库",local:"创建一个仓库",headingTag:"h3"}}),U=new h({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}}),X=new h({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}}),R=new h({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}}),L=new u({props:{title:"删除一个仓库",local:"删除一个仓库",headingTag:"h3"}}),B=new h({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}}),F=new u({props:{title:"克隆一个仓库（仅适用于 Spaces）",local:"克隆一个仓库仅适用于-spaces",headingTag:"h3"}}),S=new h({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}}),z=new u({props:{title:"上传和下载文件",local:"上传和下载文件",headingTag:"h2"}}),K=new u({props:{title:"分支和标签",local:"分支和标签",headingTag:"h2"}}),A=new u({props:{title:"创建分支和标签",local:"创建分支和标签",headingTag:"h3"}}),et=new h({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 u({props:{title:"列出所有的分支和标签",local:"列出所有的分支和标签",headingTag:"h3"}}),nt=new h({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}}),pt=new u({props:{title:"修改存储库设置",local:"修改存储库设置",headingTag:"h2"}}),ft=new u({props:{title:"更新可见性",local:"更新可见性",headingTag:"h3"}}),gt=new h({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}}),$t=new u({props:{title:"重命名您的存储库",local:"重命名您的存储库",headingTag:"h3"}}),ht=new h({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}}),ut=new u({props:{title:"管理存储库的本地副本",local:"管理存储库的本地副本",headingTag:"h2"}}),vt=new u({props:{title:"使用本地存储库",local:"使用本地存储库",headingTag:"h3"}}),_t=new h({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEFyZXBvJTIwJTNEJTIwUmVwb3NpdG9yeShsb2NhbF9kaXIlM0QlMjIlM0NwYXRoJTNFJTJGJTNDdG8lM0UlMkYlM0Nmb2xkZXIlM0UlMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository
<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(local_dir=<span class="hljs-string">&quot;&lt;path&gt;/&lt;to&gt;/&lt;folder&gt;&quot;</span>)`,wrap:!1}}),bt=new u({props:{title:"克隆",local:"克隆",headingTag:"h3"}}),xt=new h({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEFyZXBvJTIwJTNEJTIwUmVwb3NpdG9yeShsb2NhbF9kaXIlM0QlMjJ3MnYyJTIyJTJDJTIwY2xvbmVfZnJvbSUzRCUyMmZhY2Vib29rJTJGd2F2MnZlYzItbGFyZ2UtOTYwaC1sdjYwJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository
<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(local_dir=<span class="hljs-string">&quot;w2v2&quot;</span>, clone_from=<span class="hljs-string">&quot;facebook/wav2vec2-large-960h-lv60&quot;</span>)`,wrap:!1}}),Ut=new h({props:{code:"cmVwbyUyMCUzRCUyMFJlcG9zaXRvcnkobG9jYWxfZGlyJTNEJTIyaHVnZ2luZ2ZhY2UtaHViJTIyJTJDJTIwY2xvbmVfZnJvbSUzRCUyMmh0dHBzJTNBJTJGJTJGaHVnZ2luZ2ZhY2UuY28lMkZmYWNlYm9vayUyRndhdjJ2ZWMyLWxhcmdlLTk2MGgtbHY2MCUyMik=",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(local_dir=<span class="hljs-string">&quot;huggingface-hub&quot;</span>, clone_from=<span class="hljs-string">&quot;https://huggingface.co/facebook/wav2vec2-large-960h-lv60&quot;</span>)',wrap:!1}}),Xt=new h({props:{code:"cmVwb191cmwlMjAlM0QlMjBjcmVhdGVfcmVwbyhyZXBvX2lkJTNEJTIycmVwb19uYW1lJTIyKSUwQXJlcG8lMjAlM0QlMjBSZXBvc2l0b3J5KGxvY2FsX2RpciUzRCUyMnJlcG9fbG9jYWxfcGF0aCUyMiUyQyUyMGNsb25lX2Zyb20lM0RyZXBvX3VybCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>repo_url = create_repo(repo_id=<span class="hljs-string">&quot;repo_name&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(local_dir=<span class="hljs-string">&quot;repo_local_path&quot;</span>, clone_from=repo_url)`,wrap:!1}}),Rt=new h({props:{code:"cmVwbyUyMCUzRCUyMFJlcG9zaXRvcnkoJTBBJTIwJTIwJTIybXktZGF0YXNldCUyMiUyQyUwQSUyMCUyMGNsb25lX2Zyb20lM0QlMjIlM0N1c2VyJTNFJTJGJTNDZGF0YXNldF9pZCUzRSUyMiUyQyUwQSUyMCUyMHRva2VuJTNEVHJ1ZSUyQyUwQSUyMCUyMHJlcG9fdHlwZSUzRCUyMmRhdGFzZXQlMjIlMkMlMEElMjAlMjBnaXRfdXNlciUzRCUyMk15TmFtZSUyMiUyQyUwQSUyMCUyMGdpdF9lbWFpbCUzRCUyMm1lJTQwY29vbC5tYWlsJTIyJTBBKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(
<span class="hljs-meta">... </span>  <span class="hljs-string">&quot;my-dataset&quot;</span>,
<span class="hljs-meta">... </span>  clone_from=<span class="hljs-string">&quot;&lt;user&gt;/&lt;dataset_id&gt;&quot;</span>,
<span class="hljs-meta">... </span>  token=<span class="hljs-literal">True</span>,
<span class="hljs-meta">... </span>  repo_type=<span class="hljs-string">&quot;dataset&quot;</span>,
<span class="hljs-meta">... </span>  git_user=<span class="hljs-string">&quot;MyName&quot;</span>,
<span class="hljs-meta">... </span>  git_email=<span class="hljs-string">&quot;me@cool.mail&quot;</span>
<span class="hljs-meta">... </span>)`,wrap:!1}}),qt=new u({props:{title:"分支",local:"分支",headingTag:"h3"}}),It=new h({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEFyZXBvJTIwJTNEJTIwUmVwb3NpdG9yeShsb2NhbF9kaXIlM0QlMjJodWdnaW5nZmFjZS1odWIlMjIlMkMlMjBjbG9uZV9mcm9tJTNEJTIyJTNDdXNlciUzRSUyRiUzQ2RhdGFzZXRfaWQlM0UlMjIlMkMlMjByZXZpc2lvbiUzRCdicmFuY2gxJyklMEFyZXBvLmdpdF9jaGVja291dCglMjJicmFuY2gyJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository
<span class="hljs-meta">&gt;&gt;&gt; </span>repo = Repository(local_dir=<span class="hljs-string">&quot;huggingface-hub&quot;</span>, clone_from=<span class="hljs-string">&quot;&lt;user&gt;/&lt;dataset_id&gt;&quot;</span>, revision=<span class="hljs-string">&#x27;branch1&#x27;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>repo.git_checkout(<span class="hljs-string">&quot;branch2&quot;</span>)`,wrap:!1}}),Bt=new u({props:{title:"拉取",local:"拉取",headingTag:"h3"}}),Vt=new h({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMFJlcG9zaXRvcnklMEFyZXBvLmdpdF9wdWxsKCk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> Repository
<span class="hljs-meta">&gt;&gt;&gt; </span>repo.git_pull()`,wrap:!1}}),St=new h({props:{code:"cmVwby5naXRfcHVsbChyZWJhc2UlM0RUcnVlKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>repo.git_pull(rebase=<span class="hljs-literal">True</span>)',wrap:!1}}),zt=new Gs({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/cn/guides/repository.md"}}),{c(){d=p("meta"),v=a(),y=p("p"),Qt=a(),f(j.$$.fragment),Dt=a(),T=p("p"),T.innerHTML=wl,At=a(),_=p("ul"),_.innerHTML=xl,Ot=a(),f(M.$$.fragment),te=a(),b=p("p"),b.innerHTML=Cl,ee=a(),f(J.$$.fragment),le=a(),w=p("p"),w.textContent=Gl,se=a(),f(x.$$.fragment),ae=a(),C=p("p"),C.innerHTML=Ul,ne=a(),G=p("p"),G.textContent=Zl,pe=a(),f(U.$$.fragment),ie=a(),Z=p("p"),Z.innerHTML=kl,me=a(),k=p("p"),k.textContent=Xl,fe=a(),f(X.$$.fragment),ce=a(),H=p("p"),H.innerHTML=Hl,re=a(),Y=p("p"),Y.textContent=Yl,ge=a(),f(R.$$.fragment),$e=a(),q=p("p"),q.innerHTML=Rl,oe=a(),f(L.$$.fragment),de=a(),N=p("p"),N.innerHTML=ql,he=a(),I=p("p"),I.textContent=Ll,ue=a(),f(B.$$.fragment),ye=a(),f(F.$$.fragment),Me=a(),W=p("p"),W.innerHTML=Nl,ve=a(),V=p("p"),V.innerHTML=Il,je=a(),P=p("p"),P.textContent=Bl,Te=a(),f(S.$$.fragment),_e=a(),f(z.$$.fragment),be=a(),Q=p("p"),Q.textContent=Fl,Je=a(),E=p("p"),E.innerHTML=Wl,we=a(),f(K.$$.fragment),xe=a(),D=p("p"),D.innerHTML=Vl,Ce=a(),f(A.$$.fragment),Ge=a(),O=p("p"),O.innerHTML=Pl,Ue=a(),tt=p("p"),tt.textContent=Sl,Ze=a(),f(et.$$.fragment),ke=a(),lt=p("p"),lt.innerHTML=zl,Xe=a(),f(st.$$.fragment),He=a(),at=p("p"),at.innerHTML=Ql,Ye=a(),f(nt.$$.fragment),Re=a(),f(pt.$$.fragment),qe=a(),it=p("p"),it.innerHTML=El,Le=a(),mt=p("p"),mt.innerHTML=Kl,Ne=a(),f(ft.$$.fragment),Ie=a(),ct=p("p"),ct.textContent=Dl,Be=a(),rt=p("p"),rt.textContent=Al,Fe=a(),f(gt.$$.fragment),We=a(),f($t.$$.fragment),Ve=a(),ot=p("p"),ot.innerHTML=Ol,Pe=a(),dt=p("p"),dt.textContent=ts,Se=a(),f(ht.$$.fragment),ze=a(),f(ut.$$.fragment),Qe=a(),yt=p("p"),yt.textContent=es,Ee=a(),Mt=p("p"),Mt.innerHTML=ls,Ke=a(),f(vt.$$.fragment),De=a(),jt=p("p"),jt.innerHTML=ss,Ae=a(),Tt=p("p"),Tt.textContent=as,Oe=a(),f(_t.$$.fragment),tl=a(),f(bt.$$.fragment),el=a(),Jt=p("p"),Jt.innerHTML=ns,ll=a(),wt=p("p"),wt.textContent=ps,sl=a(),f(xt.$$.fragment),al=a(),Ct=p("p"),Ct.innerHTML=is,nl=a(),Gt=p("p"),Gt.textContent=ms,pl=a(),f(Ut.$$.fragment),il=a(),Zt=p("p"),Zt.innerHTML=fs,ml=a(),kt=p("p"),kt.textContent=cs,fl=a(),f(Xt.$$.fragment),cl=a(),Ht=p("p"),Ht.innerHTML=rs,rl=a(),Yt=p("p"),Yt.textContent=gs,gl=a(),f(Rt.$$.fragment),$l=a(),f(qt.$$.fragment),ol=a(),Lt=p("p"),Lt.innerHTML=$s,dl=a(),Nt=p("p"),Nt.textContent=os,hl=a(),f(It.$$.fragment),ul=a(),f(Bt.$$.fragment),yl=a(),Ft=p("p"),Ft.innerHTML=ds,Ml=a(),Wt=p("p"),Wt.textContent=hs,vl=a(),f(Vt.$$.fragment),jl=a(),Pt=p("p"),Pt.innerHTML=us,Tl=a(),f(St.$$.fragment),_l=a(),f(zt.$$.fragment),bl=a(),Et=p("p"),this.h()},l(t){const e=ws("svelte-u9bgzb",document.head);d=i(e,"META",{name:!0,content:!0}),e.forEach(l),v=n(t),y=i(t,"P",{}),Ms(y).forEach(l),Qt=n(t),c(j.$$.fragment,t),Dt=n(t),T=i(t,"P",{"data-svelte-h":!0}),m(T)!=="svelte-6jc6h2"&&(T.innerHTML=wl),At=n(t),_=i(t,"UL",{"data-svelte-h":!0}),m(_)!=="svelte-1rkixvd"&&(_.innerHTML=xl),Ot=n(t),c(M.$$.fragment,t),te=n(t),b=i(t,"P",{"data-svelte-h":!0}),m(b)!=="svelte-130f7ws"&&(b.innerHTML=Cl),ee=n(t),c(J.$$.fragment,t),le=n(t),w=i(t,"P",{"data-svelte-h":!0}),m(w)!=="svelte-16cmx63"&&(w.textContent=Gl),se=n(t),c(x.$$.fragment,t),ae=n(t),C=i(t,"P",{"data-svelte-h":!0}),m(C)!=="svelte-8amt9y"&&(C.innerHTML=Ul),ne=n(t),G=i(t,"P",{"data-svelte-h":!0}),m(G)!=="svelte-18c2bea"&&(G.textContent=Zl),pe=n(t),c(U.$$.fragment,t),ie=n(t),Z=i(t,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-avo5q4"&&(Z.innerHTML=kl),me=n(t),k=i(t,"P",{"data-svelte-h":!0}),m(k)!=="svelte-17cddf3"&&(k.textContent=Xl),fe=n(t),c(X.$$.fragment,t),ce=n(t),H=i(t,"P",{"data-svelte-h":!0}),m(H)!=="svelte-bv1lp1"&&(H.innerHTML=Hl),re=n(t),Y=i(t,"P",{"data-svelte-h":!0}),m(Y)!=="svelte-pxhsy5"&&(Y.textContent=Yl),ge=n(t),c(R.$$.fragment,t),$e=n(t),q=i(t,"P",{"data-svelte-h":!0}),m(q)!=="svelte-1icm7ua"&&(q.innerHTML=Rl),oe=n(t),c(L.$$.fragment,t),de=n(t),N=i(t,"P",{"data-svelte-h":!0}),m(N)!=="svelte-d1y8rp"&&(N.innerHTML=ql),he=n(t),I=i(t,"P",{"data-svelte-h":!0}),m(I)!=="svelte-17cddf3"&&(I.textContent=Ll),ue=n(t),c(B.$$.fragment,t),ye=n(t),c(F.$$.fragment,t),Me=n(t),W=i(t,"P",{"data-svelte-h":!0}),m(W)!=="svelte-5wxrln"&&(W.innerHTML=Nl),ve=n(t),V=i(t,"P",{"data-svelte-h":!0}),m(V)!=="svelte-vcxod7"&&(V.innerHTML=Il),je=n(t),P=i(t,"P",{"data-svelte-h":!0}),m(P)!=="svelte-17cddf3"&&(P.textContent=Bl),Te=n(t),c(S.$$.fragment,t),_e=n(t),c(z.$$.fragment,t),be=n(t),Q=i(t,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-wnk6wc"&&(Q.textContent=Fl),Je=n(t),E=i(t,"P",{"data-svelte-h":!0}),m(E)!=="svelte-1s2duhn"&&(E.innerHTML=Wl),we=n(t),c(K.$$.fragment,t),xe=n(t),D=i(t,"P",{"data-svelte-h":!0}),m(D)!=="svelte-17dpix5"&&(D.innerHTML=Vl),Ce=n(t),c(A.$$.fragment,t),Ge=n(t),O=i(t,"P",{"data-svelte-h":!0}),m(O)!=="svelte-1r3n1ij"&&(O.innerHTML=Pl),Ue=n(t),tt=i(t,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-17cddf3"&&(tt.textContent=Sl),Ze=n(t),c(et.$$.fragment,t),ke=n(t),lt=i(t,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-1g8ie6w"&&(lt.innerHTML=zl),Xe=n(t),c(st.$$.fragment,t),He=n(t),at=i(t,"P",{"data-svelte-h":!0}),m(at)!=="svelte-xhfmnh"&&(at.innerHTML=Ql),Ye=n(t),c(nt.$$.fragment,t),Re=n(t),c(pt.$$.fragment,t),qe=n(t),it=i(t,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1lxhrs9"&&(it.innerHTML=El),Le=n(t),mt=i(t,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-rxafay"&&(mt.innerHTML=Kl),Ne=n(t),c(ft.$$.fragment,t),Ie=n(t),ct=i(t,"P",{"data-svelte-h":!0}),m(ct)!=="svelte-1wb0042"&&(ct.textContent=Dl),Be=n(t),rt=i(t,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-14uqd9f"&&(rt.textContent=Al),Fe=n(t),c(gt.$$.fragment,t),We=n(t),c($t.$$.fragment,t),Ve=n(t),ot=i(t,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1d8qtcd"&&(ot.innerHTML=Ol),Pe=n(t),dt=i(t,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-17cddf3"&&(dt.textContent=ts),Se=n(t),c(ht.$$.fragment,t),ze=n(t),c(ut.$$.fragment,t),Qe=n(t),yt=i(t,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-139kcwn"&&(yt.textContent=es),Ee=n(t),Mt=i(t,"P",{"data-svelte-h":!0}),m(Mt)!=="svelte-1u43z9u"&&(Mt.innerHTML=ls),Ke=n(t),c(vt.$$.fragment,t),De=n(t),jt=i(t,"P",{"data-svelte-h":!0}),m(jt)!=="svelte-1l0rvqj"&&(jt.innerHTML=ss),Ae=n(t),Tt=i(t,"P",{"data-svelte-h":!0}),m(Tt)!=="svelte-17cddf3"&&(Tt.textContent=as),Oe=n(t),c(_t.$$.fragment,t),tl=n(t),c(bt.$$.fragment,t),el=n(t),Jt=i(t,"P",{"data-svelte-h":!0}),m(Jt)!=="svelte-2wq2og"&&(Jt.innerHTML=ns),ll=n(t),wt=i(t,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-17cddf3"&&(wt.textContent=ps),sl=n(t),c(xt.$$.fragment,t),al=n(t),Ct=i(t,"P",{"data-svelte-h":!0}),m(Ct)!=="svelte-dimtmz"&&(Ct.innerHTML=is),nl=n(t),Gt=i(t,"P",{"data-svelte-h":!0}),m(Gt)!=="svelte-17cddf3"&&(Gt.textContent=ms),pl=n(t),c(Ut.$$.fragment,t),il=n(t),Zt=i(t,"P",{"data-svelte-h":!0}),m(Zt)!=="svelte-1dvjbq8"&&(Zt.innerHTML=fs),ml=n(t),kt=i(t,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-17cddf3"&&(kt.textContent=cs),fl=n(t),c(Xt.$$.fragment,t),cl=n(t),Ht=i(t,"P",{"data-svelte-h":!0}),m(Ht)!=="svelte-8xvn9y"&&(Ht.innerHTML=rs),rl=n(t),Yt=i(t,"P",{"data-svelte-h":!0}),m(Yt)!=="svelte-17cddf3"&&(Yt.textContent=gs),gl=n(t),c(Rt.$$.fragment,t),$l=n(t),c(qt.$$.fragment,t),ol=n(t),Lt=i(t,"P",{"data-svelte-h":!0}),m(Lt)!=="svelte-g0sh1q"&&(Lt.innerHTML=$s),dl=n(t),Nt=i(t,"P",{"data-svelte-h":!0}),m(Nt)!=="svelte-17cddf3"&&(Nt.textContent=os),hl=n(t),c(It.$$.fragment,t),ul=n(t),c(Bt.$$.fragment,t),yl=n(t),Ft=i(t,"P",{"data-svelte-h":!0}),m(Ft)!=="svelte-bkgzkm"&&(Ft.innerHTML=ds),Ml=n(t),Wt=i(t,"P",{"data-svelte-h":!0}),m(Wt)!=="svelte-17cddf3"&&(Wt.textContent=hs),vl=n(t),c(Vt.$$.fragment,t),jl=n(t),Pt=i(t,"P",{"data-svelte-h":!0}),m(Pt)!=="svelte-1c27c70"&&(Pt.innerHTML=us),Tl=n(t),c(St.$$.fragment,t),_l=n(t),c(zt.$$.fragment,t),bl=n(t),Et=i(t,"P",{}),Ms(Et).forEach(l),this.h()},h(){vs(d,"name","hf:doc:metadata"),vs(d,"content",ks)},m(t,e){xs(document.head,d),s(t,v,e),s(t,y,e),s(t,Qt,e),r(j,t,e),s(t,Dt,e),s(t,T,e),s(t,At,e),s(t,_,e),s(t,Ot,e),r(M,t,e),s(t,te,e),s(t,b,e),s(t,ee,e),r(J,t,e),s(t,le,e),s(t,w,e),s(t,se,e),r(x,t,e),s(t,ae,e),s(t,C,e),s(t,ne,e),s(t,G,e),s(t,pe,e),r(U,t,e),s(t,ie,e),s(t,Z,e),s(t,me,e),s(t,k,e),s(t,fe,e),r(X,t,e),s(t,ce,e),s(t,H,e),s(t,re,e),s(t,Y,e),s(t,ge,e),r(R,t,e),s(t,$e,e),s(t,q,e),s(t,oe,e),r(L,t,e),s(t,de,e),s(t,N,e),s(t,he,e),s(t,I,e),s(t,ue,e),r(B,t,e),s(t,ye,e),r(F,t,e),s(t,Me,e),s(t,W,e),s(t,ve,e),s(t,V,e),s(t,je,e),s(t,P,e),s(t,Te,e),r(S,t,e),s(t,_e,e),r(z,t,e),s(t,be,e),s(t,Q,e),s(t,Je,e),s(t,E,e),s(t,we,e),r(K,t,e),s(t,xe,e),s(t,D,e),s(t,Ce,e),r(A,t,e),s(t,Ge,e),s(t,O,e),s(t,Ue,e),s(t,tt,e),s(t,Ze,e),r(et,t,e),s(t,ke,e),s(t,lt,e),s(t,Xe,e),r(st,t,e),s(t,He,e),s(t,at,e),s(t,Ye,e),r(nt,t,e),s(t,Re,e),r(pt,t,e),s(t,qe,e),s(t,it,e),s(t,Le,e),s(t,mt,e),s(t,Ne,e),r(ft,t,e),s(t,Ie,e),s(t,ct,e),s(t,Be,e),s(t,rt,e),s(t,Fe,e),r(gt,t,e),s(t,We,e),r($t,t,e),s(t,Ve,e),s(t,ot,e),s(t,Pe,e),s(t,dt,e),s(t,Se,e),r(ht,t,e),s(t,ze,e),r(ut,t,e),s(t,Qe,e),s(t,yt,e),s(t,Ee,e),s(t,Mt,e),s(t,Ke,e),r(vt,t,e),s(t,De,e),s(t,jt,e),s(t,Ae,e),s(t,Tt,e),s(t,Oe,e),r(_t,t,e),s(t,tl,e),r(bt,t,e),s(t,el,e),s(t,Jt,e),s(t,ll,e),s(t,wt,e),s(t,sl,e),r(xt,t,e),s(t,al,e),s(t,Ct,e),s(t,nl,e),s(t,Gt,e),s(t,pl,e),r(Ut,t,e),s(t,il,e),s(t,Zt,e),s(t,ml,e),s(t,kt,e),s(t,fl,e),r(Xt,t,e),s(t,cl,e),s(t,Ht,e),s(t,rl,e),s(t,Yt,e),s(t,gl,e),r(Rt,t,e),s(t,$l,e),r(qt,t,e),s(t,ol,e),s(t,Lt,e),s(t,dl,e),s(t,Nt,e),s(t,hl,e),r(It,t,e),s(t,ul,e),r(Bt,t,e),s(t,yl,e),s(t,Ft,e),s(t,Ml,e),s(t,Wt,e),s(t,vl,e),r(Vt,t,e),s(t,jl,e),s(t,Pt,e),s(t,Tl,e),r(St,t,e),s(t,_l,e),r(zt,t,e),s(t,bl,e),s(t,Et,e),Jl=!0},p(t,[e]){const ys={};e&2&&(ys.$$scope={dirty:e,ctx:t}),M.$set(ys)},i(t){Jl||(g(j.$$.fragment,t),g(M.$$.fragment,t),g(J.$$.fragment,t),g(x.$$.fragment,t),g(U.$$.fragment,t),g(X.$$.fragment,t),g(R.$$.fragment,t),g(L.$$.fragment,t),g(B.$$.fragment,t),g(F.$$.fragment,t),g(S.$$.fragment,t),g(z.$$.fragment,t),g(K.$$.fragment,t),g(A.$$.fragment,t),g(et.$$.fragment,t),g(st.$$.fragment,t),g(nt.$$.fragment,t),g(pt.$$.fragment,t),g(ft.$$.fragment,t),g(gt.$$.fragment,t),g($t.$$.fragment,t),g(ht.$$.fragment,t),g(ut.$$.fragment,t),g(vt.$$.fragment,t),g(_t.$$.fragment,t),g(bt.$$.fragment,t),g(xt.$$.fragment,t),g(Ut.$$.fragment,t),g(Xt.$$.fragment,t),g(Rt.$$.fragment,t),g(qt.$$.fragment,t),g(It.$$.fragment,t),g(Bt.$$.fragment,t),g(Vt.$$.fragment,t),g(St.$$.fragment,t),g(zt.$$.fragment,t),Jl=!0)},o(t){$(j.$$.fragment,t),$(M.$$.fragment,t),$(J.$$.fragment,t),$(x.$$.fragment,t),$(U.$$.fragment,t),$(X.$$.fragment,t),$(R.$$.fragment,t),$(L.$$.fragment,t),$(B.$$.fragment,t),$(F.$$.fragment,t),$(S.$$.fragment,t),$(z.$$.fragment,t),$(K.$$.fragment,t),$(A.$$.fragment,t),$(et.$$.fragment,t),$(st.$$.fragment,t),$(nt.$$.fragment,t),$(pt.$$.fragment,t),$(ft.$$.fragment,t),$(gt.$$.fragment,t),$($t.$$.fragment,t),$(ht.$$.fragment,t),$(ut.$$.fragment,t),$(vt.$$.fragment,t),$(_t.$$.fragment,t),$(bt.$$.fragment,t),$(xt.$$.fragment,t),$(Ut.$$.fragment,t),$(Xt.$$.fragment,t),$(Rt.$$.fragment,t),$(qt.$$.fragment,t),$(It.$$.fragment,t),$(Bt.$$.fragment,t),$(Vt.$$.fragment,t),$(St.$$.fragment,t),$(zt.$$.fragment,t),Jl=!1},d(t){t&&(l(v),l(y),l(Qt),l(Dt),l(T),l(At),l(_),l(Ot),l(te),l(b),l(ee),l(le),l(w),l(se),l(ae),l(C),l(ne),l(G),l(pe),l(ie),l(Z),l(me),l(k),l(fe),l(ce),l(H),l(re),l(Y),l(ge),l($e),l(q),l(oe),l(de),l(N),l(he),l(I),l(ue),l(ye),l(Me),l(W),l(ve),l(V),l(je),l(P),l(Te),l(_e),l(be),l(Q),l(Je),l(E),l(we),l(xe),l(D),l(Ce),l(Ge),l(O),l(Ue),l(tt),l(Ze),l(ke),l(lt),l(Xe),l(He),l(at),l(Ye),l(Re),l(qe),l(it),l(Le),l(mt),l(Ne),l(Ie),l(ct),l(Be),l(rt),l(Fe),l(We),l(Ve),l(ot),l(Pe),l(dt),l(Se),l(ze),l(Qe),l(yt),l(Ee),l(Mt),l(Ke),l(De),l(jt),l(Ae),l(Tt),l(Oe),l(tl),l(el),l(Jt),l(ll),l(wt),l(sl),l(al),l(Ct),l(nl),l(Gt),l(pl),l(il),l(Zt),l(ml),l(kt),l(fl),l(cl),l(Ht),l(rl),l(Yt),l(gl),l($l),l(ol),l(Lt),l(dl),l(Nt),l(hl),l(ul),l(yl),l(Ft),l(Ml),l(Wt),l(vl),l(jl),l(Pt),l(Tl),l(_l),l(bl),l(Et)),l(d),o(j,t),o(M,t),o(J,t),o(x,t),o(U,t),o(X,t),o(R,t),o(L,t),o(B,t),o(F,t),o(S,t),o(z,t),o(K,t),o(A,t),o(et,t),o(st,t),o(nt,t),o(pt,t),o(ft,t),o(gt,t),o($t,t),o(ht,t),o(ut,t),o(vt,t),o(_t,t),o(bt,t),o(xt,t),o(Ut,t),o(Xt,t),o(Rt,t),o(qt,t),o(It,t),o(Bt,t),o(Vt,t),o(St,t),o(zt,t)}}}const ks='{"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},{"title":"管理存储库的本地副本","local":"管理存储库的本地副本","sections":[{"title":"使用本地存储库","local":"使用本地存储库","sections":[],"depth":3},{"title":"克隆","local":"克隆","sections":[],"depth":3},{"title":"分支","local":"分支","sections":[],"depth":3},{"title":"拉取","local":"拉取","sections":[],"depth":3}],"depth":2}],"depth":1}';function Xs(Kt){return Ts(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ns extends bs{constructor(d){super(),Js(this,d,Xs,Zs,js,{})}}export{Ns as component};
