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