import{s as js,o as Ts,n as bs}from"../chunks/scheduler.b108d059.js";import{S as _s,i as Js,g as n,s as a,r as f,A as ws,h as i,f as l,c as p,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=n("p"),d.innerHTML=v},l(y){d=i(y,"P",{"data-svelte-h":!0}),m(d)!=="svelte-1gkovu7"&&(d.innerHTML=v)},m(y,zt){s(y,d,zt)},p:bs,d(y){y&&l(d)}}}function Zs(Kt){let d,v,y,zt,j,Dt,T,wl='Hugging Face Hub是一组 Git 存储库。<a href="https://git-scm.com/" rel="nofollow">Git</a>是软件开发中广泛使用的工具，可以在协作工作时轻松对项目进行版本控制。本指南将向您展示如何与 Hub 上的存储库进行交互，特别关注以下内容：',At,b,xl="<li>创建和删除存储库</li> <li>管理分支和标签</li> <li>重命名您的存储库</li> <li>更新您的存储库可见性</li> <li>管理存储库的本地副本</li>",Ot,M,te,_,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>",pe,G,Zl="运行以下代码，以创建仓库：",ne,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_visibility()</code> 函数",oe,L,de,I,ql="使用 <code>delete_repo()</code> 删除一个仓库。确保你确实想要删除仓库，因为这是一个不可逆转的过程！做完上述过程后，指定你想要删除的仓库的 <code>repo_id</code>",he,N,Ll="请运行以下代码：",ue,F,ye,W,Me,B,Il="在某些情况下，你可能想要复制别人的仓库并根据自己的用例进行调整。对于 Spaces，你可以使用 <code>duplicate_space()</code> 方法来实现。它将复制整个仓库。",ve,V,Nl='你仍然需要配置自己的设置（硬件和密钥）。查看我们的<a href="./manage-spaces">管理你的Space指南</a>以获取更多详细信息。',je,P,Fl="请运行以下代码：",Te,S,be,Q,_e,z,Wl="既然您已经创建了您的存储库，您现在也可以推送更改至其中并从中下载文件",Je,E,Bl='这两个主题有它们自己的指南。请<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,Ql="同时,你可以以相同的方式使用 <code>delete_branch()</code> 和 <code>delete_tag()</code> 函数来删除分支或标签",Xe,st,He,at,zl=`你还可以使用 <code>list_repo_refs()</code> 列出存储库中的现有 Git 引用
请运行以下代码：`,Ye,pt,Re,nt,qe,it,El="存储库具有一些可配置的设置。大多数情况下，您通常会在浏览器中的存储库设置页面上手动配置这些设置。要配置存储库，您必须具有对其的写访问权限（拥有它或属于组织）。在本节中，我们将看到您还可以使用 <code>huggingface_hub</code> 在编程方式上配置的设置。",Le,mt,Kl='一些设置是特定于 Spaces（硬件、环境变量等）的。要配置这些设置，请参考我们的<a href="../guides/manage-spaces">管理Spaces</a>指南。',Ie,ft,Ne,ct,Dl="一个存储库可以是公共的或私有的。私有存储库仅对您或存储库所在组织的成员可见。",Fe,rt,Al="请运行以下代码将存储库更改为私有：",We,gt,Be,$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,Qe,ut,ze,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,bt,tl,_t,el,Jt,ps="<code>clone_from</code>参数将一个存储库从Hugging Face存储库ID克隆到由 <code>local_dir</code>参数指定的本地目录：",ll,wt,ns="请运行以下代码：",sl,xt,al,Ct,is="<code>clone_from</code>还可以使用URL克隆存储库：",pl,Gt,ms="请运行以下代码：",nl,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,It,os="请运行以下代码：",hl,Nt,ul,Ft,yl,Wt,ds="<code>git_pull()</code> 允许你使用远程存储库的更改更新当前本地分支：",Ml,Bt,hs="请运行以下代码：",vl,Vt,jl,Pt,us="如果你希望本地的提交发生在你的分支被远程的新提交更新之后，请设置<code>rebase=True</code>：",Tl,St,bl,Qt,_l,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"}}),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"}}),bt=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}}),_t=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}}),Qt=new Gs({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/cn/guides/repository.md"}}),{c(){d=n("meta"),v=a(),y=n("p"),zt=a(),f(j.$$.fragment),Dt=a(),T=n("p"),T.innerHTML=wl,At=a(),b=n("ul"),b.innerHTML=xl,Ot=a(),f(M.$$.fragment),te=a(),_=n("p"),_.innerHTML=Cl,ee=a(),f(J.$$.fragment),le=a(),w=n("p"),w.textContent=Gl,se=a(),f(x.$$.fragment),ae=a(),C=n("p"),C.innerHTML=Ul,pe=a(),G=n("p"),G.textContent=Zl,ne=a(),f(U.$$.fragment),ie=a(),Z=n("p"),Z.innerHTML=kl,me=a(),k=n("p"),k.textContent=Xl,fe=a(),f(X.$$.fragment),ce=a(),H=n("p"),H.innerHTML=Hl,re=a(),Y=n("p"),Y.textContent=Yl,ge=a(),f(R.$$.fragment),$e=a(),q=n("p"),q.innerHTML=Rl,oe=a(),f(L.$$.fragment),de=a(),I=n("p"),I.innerHTML=ql,he=a(),N=n("p"),N.textContent=Ll,ue=a(),f(F.$$.fragment),ye=a(),f(W.$$.fragment),Me=a(),B=n("p"),B.innerHTML=Il,ve=a(),V=n("p"),V.innerHTML=Nl,je=a(),P=n("p"),P.textContent=Fl,Te=a(),f(S.$$.fragment),be=a(),f(Q.$$.fragment),_e=a(),z=n("p"),z.textContent=Wl,Je=a(),E=n("p"),E.innerHTML=Bl,we=a(),f(K.$$.fragment),xe=a(),D=n("p"),D.innerHTML=Vl,Ce=a(),f(A.$$.fragment),Ge=a(),O=n("p"),O.innerHTML=Pl,Ue=a(),tt=n("p"),tt.textContent=Sl,Ze=a(),f(et.$$.fragment),ke=a(),lt=n("p"),lt.innerHTML=Ql,Xe=a(),f(st.$$.fragment),He=a(),at=n("p"),at.innerHTML=zl,Ye=a(),f(pt.$$.fragment),Re=a(),f(nt.$$.fragment),qe=a(),it=n("p"),it.innerHTML=El,Le=a(),mt=n("p"),mt.innerHTML=Kl,Ie=a(),f(ft.$$.fragment),Ne=a(),ct=n("p"),ct.textContent=Dl,Fe=a(),rt=n("p"),rt.textContent=Al,We=a(),f(gt.$$.fragment),Be=a(),f($t.$$.fragment),Ve=a(),ot=n("p"),ot.innerHTML=Ol,Pe=a(),dt=n("p"),dt.textContent=ts,Se=a(),f(ht.$$.fragment),Qe=a(),f(ut.$$.fragment),ze=a(),yt=n("p"),yt.textContent=es,Ee=a(),Mt=n("p"),Mt.innerHTML=ls,Ke=a(),f(vt.$$.fragment),De=a(),jt=n("p"),jt.innerHTML=ss,Ae=a(),Tt=n("p"),Tt.textContent=as,Oe=a(),f(bt.$$.fragment),tl=a(),f(_t.$$.fragment),el=a(),Jt=n("p"),Jt.innerHTML=ps,ll=a(),wt=n("p"),wt.textContent=ns,sl=a(),f(xt.$$.fragment),al=a(),Ct=n("p"),Ct.innerHTML=is,pl=a(),Gt=n("p"),Gt.textContent=ms,nl=a(),f(Ut.$$.fragment),il=a(),Zt=n("p"),Zt.innerHTML=fs,ml=a(),kt=n("p"),kt.textContent=cs,fl=a(),f(Xt.$$.fragment),cl=a(),Ht=n("p"),Ht.innerHTML=rs,rl=a(),Yt=n("p"),Yt.textContent=gs,gl=a(),f(Rt.$$.fragment),$l=a(),f(qt.$$.fragment),ol=a(),Lt=n("p"),Lt.innerHTML=$s,dl=a(),It=n("p"),It.textContent=os,hl=a(),f(Nt.$$.fragment),ul=a(),f(Ft.$$.fragment),yl=a(),Wt=n("p"),Wt.innerHTML=ds,Ml=a(),Bt=n("p"),Bt.textContent=hs,vl=a(),f(Vt.$$.fragment),jl=a(),Pt=n("p"),Pt.innerHTML=us,Tl=a(),f(St.$$.fragment),bl=a(),f(Qt.$$.fragment),_l=a(),Et=n("p"),this.h()},l(t){const e=ws("svelte-u9bgzb",document.head);d=i(e,"META",{name:!0,content:!0}),e.forEach(l),v=p(t),y=i(t,"P",{}),Ms(y).forEach(l),zt=p(t),c(j.$$.fragment,t),Dt=p(t),T=i(t,"P",{"data-svelte-h":!0}),m(T)!=="svelte-6jc6h2"&&(T.innerHTML=wl),At=p(t),b=i(t,"UL",{"data-svelte-h":!0}),m(b)!=="svelte-1rkixvd"&&(b.innerHTML=xl),Ot=p(t),c(M.$$.fragment,t),te=p(t),_=i(t,"P",{"data-svelte-h":!0}),m(_)!=="svelte-130f7ws"&&(_.innerHTML=Cl),ee=p(t),c(J.$$.fragment,t),le=p(t),w=i(t,"P",{"data-svelte-h":!0}),m(w)!=="svelte-16cmx63"&&(w.textContent=Gl),se=p(t),c(x.$$.fragment,t),ae=p(t),C=i(t,"P",{"data-svelte-h":!0}),m(C)!=="svelte-8amt9y"&&(C.innerHTML=Ul),pe=p(t),G=i(t,"P",{"data-svelte-h":!0}),m(G)!=="svelte-18c2bea"&&(G.textContent=Zl),ne=p(t),c(U.$$.fragment,t),ie=p(t),Z=i(t,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-avo5q4"&&(Z.innerHTML=kl),me=p(t),k=i(t,"P",{"data-svelte-h":!0}),m(k)!=="svelte-17cddf3"&&(k.textContent=Xl),fe=p(t),c(X.$$.fragment,t),ce=p(t),H=i(t,"P",{"data-svelte-h":!0}),m(H)!=="svelte-bv1lp1"&&(H.innerHTML=Hl),re=p(t),Y=i(t,"P",{"data-svelte-h":!0}),m(Y)!=="svelte-pxhsy5"&&(Y.textContent=Yl),ge=p(t),c(R.$$.fragment,t),$e=p(t),q=i(t,"P",{"data-svelte-h":!0}),m(q)!=="svelte-b26c5f"&&(q.innerHTML=Rl),oe=p(t),c(L.$$.fragment,t),de=p(t),I=i(t,"P",{"data-svelte-h":!0}),m(I)!=="svelte-d1y8rp"&&(I.innerHTML=ql),he=p(t),N=i(t,"P",{"data-svelte-h":!0}),m(N)!=="svelte-17cddf3"&&(N.textContent=Ll),ue=p(t),c(F.$$.fragment,t),ye=p(t),c(W.$$.fragment,t),Me=p(t),B=i(t,"P",{"data-svelte-h":!0}),m(B)!=="svelte-5wxrln"&&(B.innerHTML=Il),ve=p(t),V=i(t,"P",{"data-svelte-h":!0}),m(V)!=="svelte-vcxod7"&&(V.innerHTML=Nl),je=p(t),P=i(t,"P",{"data-svelte-h":!0}),m(P)!=="svelte-17cddf3"&&(P.textContent=Fl),Te=p(t),c(S.$$.fragment,t),be=p(t),c(Q.$$.fragment,t),_e=p(t),z=i(t,"P",{"data-svelte-h":!0}),m(z)!=="svelte-wnk6wc"&&(z.textContent=Wl),Je=p(t),E=i(t,"P",{"data-svelte-h":!0}),m(E)!=="svelte-1s2duhn"&&(E.innerHTML=Bl),we=p(t),c(K.$$.fragment,t),xe=p(t),D=i(t,"P",{"data-svelte-h":!0}),m(D)!=="svelte-17dpix5"&&(D.innerHTML=Vl),Ce=p(t),c(A.$$.fragment,t),Ge=p(t),O=i(t,"P",{"data-svelte-h":!0}),m(O)!=="svelte-1r3n1ij"&&(O.innerHTML=Pl),Ue=p(t),tt=i(t,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-17cddf3"&&(tt.textContent=Sl),Ze=p(t),c(et.$$.fragment,t),ke=p(t),lt=i(t,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-1g8ie6w"&&(lt.innerHTML=Ql),Xe=p(t),c(st.$$.fragment,t),He=p(t),at=i(t,"P",{"data-svelte-h":!0}),m(at)!=="svelte-xhfmnh"&&(at.innerHTML=zl),Ye=p(t),c(pt.$$.fragment,t),Re=p(t),c(nt.$$.fragment,t),qe=p(t),it=i(t,"P",{"data-svelte-h":!0}),m(it)!=="svelte-1lxhrs9"&&(it.innerHTML=El),Le=p(t),mt=i(t,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-rxafay"&&(mt.innerHTML=Kl),Ie=p(t),c(ft.$$.fragment,t),Ne=p(t),ct=i(t,"P",{"data-svelte-h":!0}),m(ct)!=="svelte-1wb0042"&&(ct.textContent=Dl),Fe=p(t),rt=i(t,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-14uqd9f"&&(rt.textContent=Al),We=p(t),c(gt.$$.fragment,t),Be=p(t),c($t.$$.fragment,t),Ve=p(t),ot=i(t,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1d8qtcd"&&(ot.innerHTML=Ol),Pe=p(t),dt=i(t,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-17cddf3"&&(dt.textContent=ts),Se=p(t),c(ht.$$.fragment,t),Qe=p(t),c(ut.$$.fragment,t),ze=p(t),yt=i(t,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-139kcwn"&&(yt.textContent=es),Ee=p(t),Mt=i(t,"P",{"data-svelte-h":!0}),m(Mt)!=="svelte-1u43z9u"&&(Mt.innerHTML=ls),Ke=p(t),c(vt.$$.fragment,t),De=p(t),jt=i(t,"P",{"data-svelte-h":!0}),m(jt)!=="svelte-1l0rvqj"&&(jt.innerHTML=ss),Ae=p(t),Tt=i(t,"P",{"data-svelte-h":!0}),m(Tt)!=="svelte-17cddf3"&&(Tt.textContent=as),Oe=p(t),c(bt.$$.fragment,t),tl=p(t),c(_t.$$.fragment,t),el=p(t),Jt=i(t,"P",{"data-svelte-h":!0}),m(Jt)!=="svelte-2wq2og"&&(Jt.innerHTML=ps),ll=p(t),wt=i(t,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-17cddf3"&&(wt.textContent=ns),sl=p(t),c(xt.$$.fragment,t),al=p(t),Ct=i(t,"P",{"data-svelte-h":!0}),m(Ct)!=="svelte-dimtmz"&&(Ct.innerHTML=is),pl=p(t),Gt=i(t,"P",{"data-svelte-h":!0}),m(Gt)!=="svelte-17cddf3"&&(Gt.textContent=ms),nl=p(t),c(Ut.$$.fragment,t),il=p(t),Zt=i(t,"P",{"data-svelte-h":!0}),m(Zt)!=="svelte-1dvjbq8"&&(Zt.innerHTML=fs),ml=p(t),kt=i(t,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-17cddf3"&&(kt.textContent=cs),fl=p(t),c(Xt.$$.fragment,t),cl=p(t),Ht=i(t,"P",{"data-svelte-h":!0}),m(Ht)!=="svelte-8xvn9y"&&(Ht.innerHTML=rs),rl=p(t),Yt=i(t,"P",{"data-svelte-h":!0}),m(Yt)!=="svelte-17cddf3"&&(Yt.textContent=gs),gl=p(t),c(Rt.$$.fragment,t),$l=p(t),c(qt.$$.fragment,t),ol=p(t),Lt=i(t,"P",{"data-svelte-h":!0}),m(Lt)!=="svelte-g0sh1q"&&(Lt.innerHTML=$s),dl=p(t),It=i(t,"P",{"data-svelte-h":!0}),m(It)!=="svelte-17cddf3"&&(It.textContent=os),hl=p(t),c(Nt.$$.fragment,t),ul=p(t),c(Ft.$$.fragment,t),yl=p(t),Wt=i(t,"P",{"data-svelte-h":!0}),m(Wt)!=="svelte-bkgzkm"&&(Wt.innerHTML=ds),Ml=p(t),Bt=i(t,"P",{"data-svelte-h":!0}),m(Bt)!=="svelte-17cddf3"&&(Bt.textContent=hs),vl=p(t),c(Vt.$$.fragment,t),jl=p(t),Pt=i(t,"P",{"data-svelte-h":!0}),m(Pt)!=="svelte-1c27c70"&&(Pt.innerHTML=us),Tl=p(t),c(St.$$.fragment,t),bl=p(t),c(Qt.$$.fragment,t),_l=p(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,zt,e),r(j,t,e),s(t,Dt,e),s(t,T,e),s(t,At,e),s(t,b,e),s(t,Ot,e),r(M,t,e),s(t,te,e),s(t,_,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,pe,e),s(t,G,e),s(t,ne,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,I,e),s(t,he,e),s(t,N,e),s(t,ue,e),r(F,t,e),s(t,ye,e),r(W,t,e),s(t,Me,e),s(t,B,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,be,e),r(Q,t,e),s(t,_e,e),s(t,z,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(pt,t,e),s(t,Re,e),r(nt,t,e),s(t,qe,e),s(t,it,e),s(t,Le,e),s(t,mt,e),s(t,Ie,e),r(ft,t,e),s(t,Ne,e),s(t,ct,e),s(t,Fe,e),s(t,rt,e),s(t,We,e),r(gt,t,e),s(t,Be,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,Qe,e),r(ut,t,e),s(t,ze,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(bt,t,e),s(t,tl,e),r(_t,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,pl,e),s(t,Gt,e),s(t,nl,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,It,e),s(t,hl,e),r(Nt,t,e),s(t,ul,e),r(Ft,t,e),s(t,yl,e),s(t,Wt,e),s(t,Ml,e),s(t,Bt,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,bl,e),r(Qt,t,e),s(t,_l,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(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(bt.$$.fragment,t),g(_t.$$.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),g(Qt.$$.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),$(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),$(bt.$$.fragment,t),$(_t.$$.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),$(Qt.$$.fragment,t),Jl=!1},d(t){t&&(l(v),l(y),l(zt),l(Dt),l(T),l(At),l(b),l(Ot),l(te),l(_),l(ee),l(le),l(w),l(se),l(ae),l(C),l(pe),l(G),l(ne),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(I),l(he),l(N),l(ue),l(ye),l(Me),l(B),l(ve),l(V),l(je),l(P),l(Te),l(be),l(_e),l(z),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(Ie),l(Ne),l(ct),l(Fe),l(rt),l(We),l(Be),l(Ve),l(ot),l(Pe),l(dt),l(Se),l(Qe),l(ze),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(pl),l(Gt),l(nl),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(It),l(hl),l(ul),l(yl),l(Wt),l(Ml),l(Bt),l(vl),l(jl),l(Pt),l(Tl),l(bl),l(_l),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(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(bt,t),o(_t,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),o(Qt,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 Is extends _s{constructor(d){super(),Js(this,d,Xs,Zs,js,{})}}export{Is as component};
