import{s as Ia,o as La,n as ta}from"../chunks/scheduler.6062bdaf.js";import{S as Fa,i as Na,g as h,s as n,r as i,A as Ba,h as f,f as a,c as l,j as Ya,u as r,x as m,k as qa,y as Wa,a as s,v as o,d as p,t as c,w as g}from"../chunks/index.4bca734e.js";import{T as ea}from"../chunks/Tip.b9ac1f03.js";import{C as d}from"../chunks/CodeBlock.fa01571c.js";import{H as $,E as za}from"../chunks/EditOnGithub.74ab2baa.js";function Sa(w){let u,b=`If you are used to working with platforms such as GitLab/GitHub/Bitbucket, your first instinct
might be to use <code>git</code> CLI to clone your repo (<code>git clone</code>), commit changes (<code>git add, git commit</code>) and push them
(<code>git push</code>). This is valid when using the Hugging Face Hub. However, software engineering and machine learning do
not share the same requirements and workflows. Model repositories might maintain large model weight files for different
frameworks and tools, so cloning the repository can lead to you maintaining large local folders with massive sizes. As
a result, it may be more efficient to use our custom HTTP methods. You can read our <a href="../concepts/git_vs_http">Git vs HTTP paradigm</a>
explanation page for more details.`;return{c(){u=h("p"),u.innerHTML=b},l(y){u=f(y,"P",{"data-svelte-h":!0}),m(u)!=="svelte-7thk71"&&(u.innerHTML=b)},m(y,_){s(y,u,_)},p:ta,d(y){y&&a(u)}}}function Va(w){let u,b='If you are part of an organization with an Enterprise plan, you can create a repo in a specific resource group by passing <code>resource_group_id</code> as parameter to <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a>. Resource groups are a security feature to control which members from your org can access a given resource. You can get the resource group ID by copying it from your org settings page url on the Hub (e.g. <code>&quot;https://huggingface.co/organizations/huggingface/settings/resource-groups/66670e5163145ca562cb1988&quot;</code> =&gt; <code>&quot;66670e5163145ca562cb1988&quot;</code>). For more details about resource group, check out this <a href="https://huggingface.co/docs/hub/en/security-resource-groups" rel="nofollow">guide</a>.';return{c(){u=h("p"),u.innerHTML=b},l(y){u=f(y,"P",{"data-svelte-h":!0}),m(u)!=="svelte-pi4n91"&&(u.innerHTML=b)},m(y,_){s(y,u,_)},p:ta,d(y){y&&a(u)}}}function Pa(w){let u,b='<a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository">Repository</a> is deprecated in favor of the http-based alternatives implemented in <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi">HfApi</a>. Given its large adoption in legacy code, the complete removal of <a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository">Repository</a> will only happen in release <code>v1.0</code>. For more details, please read <a href="./concepts/git_vs_http">this explanation page</a>.';return{c(){u=h("p"),u.innerHTML=b},l(y){u=f(y,"P",{"data-svelte-h":!0}),m(u)!=="svelte-20ypic"&&(u.innerHTML=b)},m(y,_){s(y,u,_)},p:ta,d(y){y&&a(u)}}}function Qa(w){let u,b,y,_,j,Ie,J,aa=`The Hugging Face Hub is a collection of git repositories. <a href="https://git-scm.com/" rel="nofollow">Git</a> is a widely used tool in software
development to easily version projects when working collaboratively. This guide will show you how to interact with the
repositories on the Hub, especially:`,Le,U,sa="<li>Create and delete a repository.</li> <li>Manage branches and tags.</li> <li>Rename your repository.</li> <li>Update your repository visibility.</li> <li>Manage a local copy of your repository.</li>",Fe,M,Ne,G,na=`If you want to create and manage a repository on the Hub, your machine must be logged in. If you are not, please refer to
<a href="../quick-start#authentication">this section</a>. In the rest of this guide, we will assume that your machine is logged in.`,Be,k,We,Z,la=`The first step is to know how to create and delete repositories. You can only manage repositories that you own (under
your username namespace) or from organizations in which you have write permissions.`,ze,H,Se,C,ia='Create an empty repository with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> and give it a name with the <code>repo_id</code> parameter. The <code>repo_id</code> is your namespace followed by the repository name: <code>username_or_org/repo_name</code>.',Ve,x,Pe,R,ra='By default, <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> creates a model repository. But you can use the <code>repo_type</code> parameter to specify another repository type. For example, if you want to create a dataset repository:',Qe,X,Ee,Y,oa="When you create a repository, you can set your repository visibility with the <code>private</code> parameter.",Ae,q,De,I,pa='If you want to change the repository visibility at a later time, you can use the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.update_repo_visibility">update_repo_visibility()</a> function.',Ke,v,Oe,L,et,F,ca='Delete a repository with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_repo">delete_repo()</a>. Make sure you want to delete a repository because this is an irreversible process!',tt,N,ga="Specify the <code>repo_id</code> of the repository you want to delete:",at,B,st,W,nt,z,ha=`In some cases, you want to copy someone else’s repo to adapt it to your use case.
This is possible for Spaces using the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.duplicate_space">duplicate_space()</a> method. It will duplicate the whole repository.
You will still need to configure your own settings (hardware, sleep-time, storage, variables and secrets). Check out our <a href="./manage-spaces">Manage your Space</a> guide for more details.`,lt,S,it,V,rt,P,fa="Now that you have created your repository, you are interested in pushing changes to it and downloading files from it.",ot,Q,ma=`These 2 topics deserve their own guides. Please refer to the <a href="./upload">upload</a> and the <a href="./download">download</a> guides
to learn how to use your repository.`,pt,E,ct,A,ua=`Git repositories often make use of branches to store different versions of a same repository.
Tags can also be used to flag a specific state of your repository, for example, when releasing a version.
More generally, branches and tags are referred as <a href="https://git-scm.com/book/en/v2/Git-Internals-Git-References" rel="nofollow">git references</a>.`,gt,D,ht,K,ya='You can create new branch and tags using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_branch">create_branch()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_tag">create_tag()</a>:',ft,O,mt,ee,da='You can use the <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_branch">delete_branch()</a> and <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.delete_tag">delete_tag()</a> functions in the same way to delete a branch or a tag.',ut,te,yt,ae,$a='You can also list the existing git refs from a repository using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.list_repo_refs">list_repo_refs()</a>:',dt,se,$t,ne,bt,le,ba=`Repositories come with some settings that you can configure. Most of the time, you will want to do that manually in the
repo settings page in your browser. You must have write access to a repo to configure it (either own it or being part of
an organization). In this section, we will see the settings that you can also configure programmatically using <code>huggingface_hub</code>.`,_t,ie,_a='Some settings are specific to Spaces (hardware, environment variables,…). To configure those, please refer to our <a href="../guides/manage-spaces">Manage your Spaces</a> guide.',wt,re,Mt,oe,wa="A repository can be public or private. A private repository is only visible to you or members of the organization in which the repository is located. Change a repository to private as shown in the following:",vt,pe,Tt,ce,jt,ge,Ma=`You can rename your repository on the Hub using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.move_repo">move_repo()</a>. Using this method, you can also move the repo from a user to
an organization. When doing so, there are a <a href="https://hf.co/docs/hub/repositories-settings#renaming-or-transferring-a-repo" rel="nofollow">few limitations</a>
that you should be aware of. For example, you can’t transfer your repo to another user.`,Jt,he,Ut,fe,Gt,me,va=`All the actions described above can be done using HTTP requests. However, in some cases you might be interested in having
a local copy of your repository and interact with it using the Git commands you are familiar with.`,kt,ue,Ta='The <a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository">Repository</a> class allows you to interact with files and repositories on the Hub with functions similar to Git commands. It is a wrapper over Git and Git-LFS methods to use the Git commands you already know and love. Before starting, please make sure you have Git-LFS installed (see <a href="https://git-lfs.github.com/" rel="nofollow">here</a> for installation instructions).',Zt,T,Ht,ye,Ct,de,ja='Instantiate a <a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository">Repository</a> object with a path to a local repository:',xt,$e,Rt,be,Xt,_e,Ja="The <code>clone_from</code> parameter clones a repository from a Hugging Face repository ID to a local directory specified by the <code>local_dir</code> argument:",Yt,we,qt,Me,Ua="<code>clone_from</code> can also clone a repository using a URL:",It,ve,Lt,Te,Ga='You can combine the <code>clone_from</code> parameter with <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.create_repo">create_repo()</a> to create and clone a repository:',Ft,je,Nt,Je,ka="You can also configure a Git username and email to a cloned repository by specifying the <code>git_user</code> and <code>git_email</code> parameters when you clone a repository. When users commit to that repository, Git will be aware of the commit author.",Bt,Ue,Wt,Ge,zt,ke,Za='Branches are important for collaboration and experimentation without impacting your current files and code. Switch between branches with <a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository.git_checkout">git_checkout()</a>. For example, if you want to switch from <code>branch1</code> to <code>branch2</code>:',St,Ze,Vt,He,Pt,Ce,Ha='<a href="/docs/huggingface_hub/main/en/package_reference/repository#huggingface_hub.Repository.git_pull">git_pull()</a> allows you to update a current local branch with changes from a remote repository:',Qt,xe,Et,Re,Ca="Set <code>rebase=True</code> if you want your local commits to occur after your branch is updated with the new commits from the remote:",At,Xe,Dt,Ye,Kt,qe,Ot;return j=new $({props:{title:"Create and manage a repository",local:"create-and-manage-a-repository",headingTag:"h1"}}),M=new ea({props:{warning:!0,$$slots:{default:[Sa]},$$scope:{ctx:w}}}),k=new $({props:{title:"Repo creation and deletion",local:"repo-creation-and-deletion",headingTag:"h2"}}),H=new $({props:{title:"Create a repository",local:"create-a-repository",headingTag:"h3"}}),x=new d({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 d({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}}),q=new d({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}}),v=new ea({props:{$$slots:{default:[Va]},$$scope:{ctx:w}}}),L=new $({props:{title:"Delete a repository",local:"delete-a-repository",headingTag:"h3"}}),B=new d({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 $({props:{title:"Duplicate a repository (only for Spaces)",local:"duplicate-a-repository-only-for-spaces",headingTag:"h3"}}),S=new d({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}}),V=new $({props:{title:"Upload and download files",local:"upload-and-download-files",headingTag:"h2"}}),E=new $({props:{title:"Branches and tags",local:"branches-and-tags",headingTag:"h2"}}),D=new $({props:{title:"Create branches and tags",local:"create-branches-and-tags",headingTag:"h3"}}),O=new d({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGNyZWF0ZV9icmFuY2glMkMlMjBjcmVhdGVfdGFnJTBBJTBBY3JlYXRlX2JyYW5jaCglMjJNYXR0aGlqcyUyRnNwZWVjaHQ1LXR0cy1kZW1vJTIyJTJDJTIwcmVwb190eXBlJTNEJTIyc3BhY2UlMjIlMkMlMjBicmFuY2glM0QlMjJoYW5kbGUtZG9nLXNwZWFrZXIlMjIpJTBBJTBBY3JlYXRlX3RhZyglMjJiaWdjb2RlJTJGdGhlLXN0YWNrJTIyJTJDJTIwcmVwb190eXBlJTNEJTIyZGF0YXNldCUyMiUyQyUyMHJldmlzaW9uJTNEJTIydjAuMS1yZWxlYXNlJTIyJTJDJTIwdGFnJTNEJTIydjAuMS4xJTIyJTJDJTIwdGFnX21lc3NhZ2UlM0QlMjJCdW1wJTIwcmVsZWFzZSUyMHZlcnNpb24uJTIyKQ==",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_tag(<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}}),te=new $({props:{title:"List all branches and tags",local:"list-all-branches-and-tags",headingTag:"h3"}}),se=new d({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxpc3RfcmVwb19yZWZzJTBBbGlzdF9yZXBvX3JlZnMoJTIyYmlnY29kZSUyRnRoZS1zdGFjayUyMiUyQyUyMHJlcG9fdHlwZSUzRCUyMmRhdGFzZXQlMjIp",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>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}}),ne=new $({props:{title:"Change repository settings",local:"change-repository-settings",headingTag:"h2"}}),re=new $({props:{title:"Update visibility",local:"update-visibility",headingTag:"h3"}}),pe=new d({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}}),ce=new $({props:{title:"Rename your repository",local:"rename-your-repository",headingTag:"h3"}}),he=new d({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}}),fe=new $({props:{title:"Manage a local copy of your repository",local:"manage-a-local-copy-of-your-repository",headingTag:"h2"}}),T=new ea({props:{warning:!0,$$slots:{default:[Pa]},$$scope:{ctx:w}}}),ye=new $({props:{title:"Use a local repository",local:"use-a-local-repository",headingTag:"h3"}}),$e=new d({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}}),be=new $({props:{title:"Clone",local:"clone",headingTag:"h3"}}),we=new d({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}}),ve=new d({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}}),je=new d({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}}),Ue=new d({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}}),Ge=new $({props:{title:"Branch",local:"branch",headingTag:"h3"}}),Ze=new d({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}}),He=new $({props:{title:"Pull",local:"pull",headingTag:"h3"}}),xe=new d({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}}),Xe=new d({props:{code:"cmVwby5naXRfcHVsbChyZWJhc2UlM0RUcnVlKQ==",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span>repo.git_pull(rebase=<span class="hljs-literal">True</span>)',wrap:!1}}),Ye=new za({props:{source:"https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/guides/repository.md"}}),{c(){u=h("meta"),b=n(),y=h("p"),_=n(),i(j.$$.fragment),Ie=n(),J=h("p"),J.innerHTML=aa,Le=n(),U=h("ul"),U.innerHTML=sa,Fe=n(),i(M.$$.fragment),Ne=n(),G=h("p"),G.innerHTML=na,Be=n(),i(k.$$.fragment),We=n(),Z=h("p"),Z.textContent=la,ze=n(),i(H.$$.fragment),Se=n(),C=h("p"),C.innerHTML=ia,Ve=n(),i(x.$$.fragment),Pe=n(),R=h("p"),R.innerHTML=ra,Qe=n(),i(X.$$.fragment),Ee=n(),Y=h("p"),Y.innerHTML=oa,Ae=n(),i(q.$$.fragment),De=n(),I=h("p"),I.innerHTML=pa,Ke=n(),i(v.$$.fragment),Oe=n(),i(L.$$.fragment),et=n(),F=h("p"),F.innerHTML=ca,tt=n(),N=h("p"),N.innerHTML=ga,at=n(),i(B.$$.fragment),st=n(),i(W.$$.fragment),nt=n(),z=h("p"),z.innerHTML=ha,lt=n(),i(S.$$.fragment),it=n(),i(V.$$.fragment),rt=n(),P=h("p"),P.textContent=fa,ot=n(),Q=h("p"),Q.innerHTML=ma,pt=n(),i(E.$$.fragment),ct=n(),A=h("p"),A.innerHTML=ua,gt=n(),i(D.$$.fragment),ht=n(),K=h("p"),K.innerHTML=ya,ft=n(),i(O.$$.fragment),mt=n(),ee=h("p"),ee.innerHTML=da,ut=n(),i(te.$$.fragment),yt=n(),ae=h("p"),ae.innerHTML=$a,dt=n(),i(se.$$.fragment),$t=n(),i(ne.$$.fragment),bt=n(),le=h("p"),le.innerHTML=ba,_t=n(),ie=h("p"),ie.innerHTML=_a,wt=n(),i(re.$$.fragment),Mt=n(),oe=h("p"),oe.textContent=wa,vt=n(),i(pe.$$.fragment),Tt=n(),i(ce.$$.fragment),jt=n(),ge=h("p"),ge.innerHTML=Ma,Jt=n(),i(he.$$.fragment),Ut=n(),i(fe.$$.fragment),Gt=n(),me=h("p"),me.textContent=va,kt=n(),ue=h("p"),ue.innerHTML=Ta,Zt=n(),i(T.$$.fragment),Ht=n(),i(ye.$$.fragment),Ct=n(),de=h("p"),de.innerHTML=ja,xt=n(),i($e.$$.fragment),Rt=n(),i(be.$$.fragment),Xt=n(),_e=h("p"),_e.innerHTML=Ja,Yt=n(),i(we.$$.fragment),qt=n(),Me=h("p"),Me.innerHTML=Ua,It=n(),i(ve.$$.fragment),Lt=n(),Te=h("p"),Te.innerHTML=Ga,Ft=n(),i(je.$$.fragment),Nt=n(),Je=h("p"),Je.innerHTML=ka,Bt=n(),i(Ue.$$.fragment),Wt=n(),i(Ge.$$.fragment),zt=n(),ke=h("p"),ke.innerHTML=Za,St=n(),i(Ze.$$.fragment),Vt=n(),i(He.$$.fragment),Pt=n(),Ce=h("p"),Ce.innerHTML=Ha,Qt=n(),i(xe.$$.fragment),Et=n(),Re=h("p"),Re.innerHTML=Ca,At=n(),i(Xe.$$.fragment),Dt=n(),i(Ye.$$.fragment),Kt=n(),qe=h("p"),this.h()},l(e){const t=Ba("svelte-u9bgzb",document.head);u=f(t,"META",{name:!0,content:!0}),t.forEach(a),b=l(e),y=f(e,"P",{}),Ya(y).forEach(a),_=l(e),r(j.$$.fragment,e),Ie=l(e),J=f(e,"P",{"data-svelte-h":!0}),m(J)!=="svelte-15r6soe"&&(J.innerHTML=aa),Le=l(e),U=f(e,"UL",{"data-svelte-h":!0}),m(U)!=="svelte-jzhbqw"&&(U.innerHTML=sa),Fe=l(e),r(M.$$.fragment,e),Ne=l(e),G=f(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-1u5cce3"&&(G.innerHTML=na),Be=l(e),r(k.$$.fragment,e),We=l(e),Z=f(e,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-1yl5xsc"&&(Z.textContent=la),ze=l(e),r(H.$$.fragment,e),Se=l(e),C=f(e,"P",{"data-svelte-h":!0}),m(C)!=="svelte-lwdt4f"&&(C.innerHTML=ia),Ve=l(e),r(x.$$.fragment,e),Pe=l(e),R=f(e,"P",{"data-svelte-h":!0}),m(R)!=="svelte-thoypj"&&(R.innerHTML=ra),Qe=l(e),r(X.$$.fragment,e),Ee=l(e),Y=f(e,"P",{"data-svelte-h":!0}),m(Y)!=="svelte-1lhlim8"&&(Y.innerHTML=oa),Ae=l(e),r(q.$$.fragment,e),De=l(e),I=f(e,"P",{"data-svelte-h":!0}),m(I)!=="svelte-i69e3z"&&(I.innerHTML=pa),Ke=l(e),r(v.$$.fragment,e),Oe=l(e),r(L.$$.fragment,e),et=l(e),F=f(e,"P",{"data-svelte-h":!0}),m(F)!=="svelte-wzuy4v"&&(F.innerHTML=ca),tt=l(e),N=f(e,"P",{"data-svelte-h":!0}),m(N)!=="svelte-130g6n6"&&(N.innerHTML=ga),at=l(e),r(B.$$.fragment,e),st=l(e),r(W.$$.fragment,e),nt=l(e),z=f(e,"P",{"data-svelte-h":!0}),m(z)!=="svelte-1mzmozw"&&(z.innerHTML=ha),lt=l(e),r(S.$$.fragment,e),it=l(e),r(V.$$.fragment,e),rt=l(e),P=f(e,"P",{"data-svelte-h":!0}),m(P)!=="svelte-1sdwkqa"&&(P.textContent=fa),ot=l(e),Q=f(e,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-1sqatlx"&&(Q.innerHTML=ma),pt=l(e),r(E.$$.fragment,e),ct=l(e),A=f(e,"P",{"data-svelte-h":!0}),m(A)!=="svelte-1rc0mjs"&&(A.innerHTML=ua),gt=l(e),r(D.$$.fragment,e),ht=l(e),K=f(e,"P",{"data-svelte-h":!0}),m(K)!=="svelte-gzsa62"&&(K.innerHTML=ya),ft=l(e),r(O.$$.fragment,e),mt=l(e),ee=f(e,"P",{"data-svelte-h":!0}),m(ee)!=="svelte-1f5b75n"&&(ee.innerHTML=da),ut=l(e),r(te.$$.fragment,e),yt=l(e),ae=f(e,"P",{"data-svelte-h":!0}),m(ae)!=="svelte-1jcko64"&&(ae.innerHTML=$a),dt=l(e),r(se.$$.fragment,e),$t=l(e),r(ne.$$.fragment,e),bt=l(e),le=f(e,"P",{"data-svelte-h":!0}),m(le)!=="svelte-1nx84sp"&&(le.innerHTML=ba),_t=l(e),ie=f(e,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-16vpsz9"&&(ie.innerHTML=_a),wt=l(e),r(re.$$.fragment,e),Mt=l(e),oe=f(e,"P",{"data-svelte-h":!0}),m(oe)!=="svelte-17yd1o0"&&(oe.textContent=wa),vt=l(e),r(pe.$$.fragment,e),Tt=l(e),r(ce.$$.fragment,e),jt=l(e),ge=f(e,"P",{"data-svelte-h":!0}),m(ge)!=="svelte-1cnzwe6"&&(ge.innerHTML=Ma),Jt=l(e),r(he.$$.fragment,e),Ut=l(e),r(fe.$$.fragment,e),Gt=l(e),me=f(e,"P",{"data-svelte-h":!0}),m(me)!=="svelte-y0ecwu"&&(me.textContent=va),kt=l(e),ue=f(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-ghromy"&&(ue.innerHTML=Ta),Zt=l(e),r(T.$$.fragment,e),Ht=l(e),r(ye.$$.fragment,e),Ct=l(e),de=f(e,"P",{"data-svelte-h":!0}),m(de)!=="svelte-1mswhvc"&&(de.innerHTML=ja),xt=l(e),r($e.$$.fragment,e),Rt=l(e),r(be.$$.fragment,e),Xt=l(e),_e=f(e,"P",{"data-svelte-h":!0}),m(_e)!=="svelte-1efx20p"&&(_e.innerHTML=Ja),Yt=l(e),r(we.$$.fragment,e),qt=l(e),Me=f(e,"P",{"data-svelte-h":!0}),m(Me)!=="svelte-1kdxyrq"&&(Me.innerHTML=Ua),It=l(e),r(ve.$$.fragment,e),Lt=l(e),Te=f(e,"P",{"data-svelte-h":!0}),m(Te)!=="svelte-alo6um"&&(Te.innerHTML=Ga),Ft=l(e),r(je.$$.fragment,e),Nt=l(e),Je=f(e,"P",{"data-svelte-h":!0}),m(Je)!=="svelte-2rn2fx"&&(Je.innerHTML=ka),Bt=l(e),r(Ue.$$.fragment,e),Wt=l(e),r(Ge.$$.fragment,e),zt=l(e),ke=f(e,"P",{"data-svelte-h":!0}),m(ke)!=="svelte-1hmns4m"&&(ke.innerHTML=Za),St=l(e),r(Ze.$$.fragment,e),Vt=l(e),r(He.$$.fragment,e),Pt=l(e),Ce=f(e,"P",{"data-svelte-h":!0}),m(Ce)!=="svelte-uwa6sa"&&(Ce.innerHTML=Ha),Qt=l(e),r(xe.$$.fragment,e),Et=l(e),Re=f(e,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-199y79p"&&(Re.innerHTML=Ca),At=l(e),r(Xe.$$.fragment,e),Dt=l(e),r(Ye.$$.fragment,e),Kt=l(e),qe=f(e,"P",{}),Ya(qe).forEach(a),this.h()},h(){qa(u,"name","hf:doc:metadata"),qa(u,"content",Ea)},m(e,t){Wa(document.head,u),s(e,b,t),s(e,y,t),s(e,_,t),o(j,e,t),s(e,Ie,t),s(e,J,t),s(e,Le,t),s(e,U,t),s(e,Fe,t),o(M,e,t),s(e,Ne,t),s(e,G,t),s(e,Be,t),o(k,e,t),s(e,We,t),s(e,Z,t),s(e,ze,t),o(H,e,t),s(e,Se,t),s(e,C,t),s(e,Ve,t),o(x,e,t),s(e,Pe,t),s(e,R,t),s(e,Qe,t),o(X,e,t),s(e,Ee,t),s(e,Y,t),s(e,Ae,t),o(q,e,t),s(e,De,t),s(e,I,t),s(e,Ke,t),o(v,e,t),s(e,Oe,t),o(L,e,t),s(e,et,t),s(e,F,t),s(e,tt,t),s(e,N,t),s(e,at,t),o(B,e,t),s(e,st,t),o(W,e,t),s(e,nt,t),s(e,z,t),s(e,lt,t),o(S,e,t),s(e,it,t),o(V,e,t),s(e,rt,t),s(e,P,t),s(e,ot,t),s(e,Q,t),s(e,pt,t),o(E,e,t),s(e,ct,t),s(e,A,t),s(e,gt,t),o(D,e,t),s(e,ht,t),s(e,K,t),s(e,ft,t),o(O,e,t),s(e,mt,t),s(e,ee,t),s(e,ut,t),o(te,e,t),s(e,yt,t),s(e,ae,t),s(e,dt,t),o(se,e,t),s(e,$t,t),o(ne,e,t),s(e,bt,t),s(e,le,t),s(e,_t,t),s(e,ie,t),s(e,wt,t),o(re,e,t),s(e,Mt,t),s(e,oe,t),s(e,vt,t),o(pe,e,t),s(e,Tt,t),o(ce,e,t),s(e,jt,t),s(e,ge,t),s(e,Jt,t),o(he,e,t),s(e,Ut,t),o(fe,e,t),s(e,Gt,t),s(e,me,t),s(e,kt,t),s(e,ue,t),s(e,Zt,t),o(T,e,t),s(e,Ht,t),o(ye,e,t),s(e,Ct,t),s(e,de,t),s(e,xt,t),o($e,e,t),s(e,Rt,t),o(be,e,t),s(e,Xt,t),s(e,_e,t),s(e,Yt,t),o(we,e,t),s(e,qt,t),s(e,Me,t),s(e,It,t),o(ve,e,t),s(e,Lt,t),s(e,Te,t),s(e,Ft,t),o(je,e,t),s(e,Nt,t),s(e,Je,t),s(e,Bt,t),o(Ue,e,t),s(e,Wt,t),o(Ge,e,t),s(e,zt,t),s(e,ke,t),s(e,St,t),o(Ze,e,t),s(e,Vt,t),o(He,e,t),s(e,Pt,t),s(e,Ce,t),s(e,Qt,t),o(xe,e,t),s(e,Et,t),s(e,Re,t),s(e,At,t),o(Xe,e,t),s(e,Dt,t),o(Ye,e,t),s(e,Kt,t),s(e,qe,t),Ot=!0},p(e,[t]){const xa={};t&2&&(xa.$$scope={dirty:t,ctx:e}),M.$set(xa);const Ra={};t&2&&(Ra.$$scope={dirty:t,ctx:e}),v.$set(Ra);const Xa={};t&2&&(Xa.$$scope={dirty:t,ctx:e}),T.$set(Xa)},i(e){Ot||(p(j.$$.fragment,e),p(M.$$.fragment,e),p(k.$$.fragment,e),p(H.$$.fragment,e),p(x.$$.fragment,e),p(X.$$.fragment,e),p(q.$$.fragment,e),p(v.$$.fragment,e),p(L.$$.fragment,e),p(B.$$.fragment,e),p(W.$$.fragment,e),p(S.$$.fragment,e),p(V.$$.fragment,e),p(E.$$.fragment,e),p(D.$$.fragment,e),p(O.$$.fragment,e),p(te.$$.fragment,e),p(se.$$.fragment,e),p(ne.$$.fragment,e),p(re.$$.fragment,e),p(pe.$$.fragment,e),p(ce.$$.fragment,e),p(he.$$.fragment,e),p(fe.$$.fragment,e),p(T.$$.fragment,e),p(ye.$$.fragment,e),p($e.$$.fragment,e),p(be.$$.fragment,e),p(we.$$.fragment,e),p(ve.$$.fragment,e),p(je.$$.fragment,e),p(Ue.$$.fragment,e),p(Ge.$$.fragment,e),p(Ze.$$.fragment,e),p(He.$$.fragment,e),p(xe.$$.fragment,e),p(Xe.$$.fragment,e),p(Ye.$$.fragment,e),Ot=!0)},o(e){c(j.$$.fragment,e),c(M.$$.fragment,e),c(k.$$.fragment,e),c(H.$$.fragment,e),c(x.$$.fragment,e),c(X.$$.fragment,e),c(q.$$.fragment,e),c(v.$$.fragment,e),c(L.$$.fragment,e),c(B.$$.fragment,e),c(W.$$.fragment,e),c(S.$$.fragment,e),c(V.$$.fragment,e),c(E.$$.fragment,e),c(D.$$.fragment,e),c(O.$$.fragment,e),c(te.$$.fragment,e),c(se.$$.fragment,e),c(ne.$$.fragment,e),c(re.$$.fragment,e),c(pe.$$.fragment,e),c(ce.$$.fragment,e),c(he.$$.fragment,e),c(fe.$$.fragment,e),c(T.$$.fragment,e),c(ye.$$.fragment,e),c($e.$$.fragment,e),c(be.$$.fragment,e),c(we.$$.fragment,e),c(ve.$$.fragment,e),c(je.$$.fragment,e),c(Ue.$$.fragment,e),c(Ge.$$.fragment,e),c(Ze.$$.fragment,e),c(He.$$.fragment,e),c(xe.$$.fragment,e),c(Xe.$$.fragment,e),c(Ye.$$.fragment,e),Ot=!1},d(e){e&&(a(b),a(y),a(_),a(Ie),a(J),a(Le),a(U),a(Fe),a(Ne),a(G),a(Be),a(We),a(Z),a(ze),a(Se),a(C),a(Ve),a(Pe),a(R),a(Qe),a(Ee),a(Y),a(Ae),a(De),a(I),a(Ke),a(Oe),a(et),a(F),a(tt),a(N),a(at),a(st),a(nt),a(z),a(lt),a(it),a(rt),a(P),a(ot),a(Q),a(pt),a(ct),a(A),a(gt),a(ht),a(K),a(ft),a(mt),a(ee),a(ut),a(yt),a(ae),a(dt),a($t),a(bt),a(le),a(_t),a(ie),a(wt),a(Mt),a(oe),a(vt),a(Tt),a(jt),a(ge),a(Jt),a(Ut),a(Gt),a(me),a(kt),a(ue),a(Zt),a(Ht),a(Ct),a(de),a(xt),a(Rt),a(Xt),a(_e),a(Yt),a(qt),a(Me),a(It),a(Lt),a(Te),a(Ft),a(Nt),a(Je),a(Bt),a(Wt),a(zt),a(ke),a(St),a(Vt),a(Pt),a(Ce),a(Qt),a(Et),a(Re),a(At),a(Dt),a(Kt),a(qe)),a(u),g(j,e),g(M,e),g(k,e),g(H,e),g(x,e),g(X,e),g(q,e),g(v,e),g(L,e),g(B,e),g(W,e),g(S,e),g(V,e),g(E,e),g(D,e),g(O,e),g(te,e),g(se,e),g(ne,e),g(re,e),g(pe,e),g(ce,e),g(he,e),g(fe,e),g(T,e),g(ye,e),g($e,e),g(be,e),g(we,e),g(ve,e),g(je,e),g(Ue,e),g(Ge,e),g(Ze,e),g(He,e),g(xe,e),g(Xe,e),g(Ye,e)}}}const Ea='{"title":"Create and manage a repository","local":"create-and-manage-a-repository","sections":[{"title":"Repo creation and deletion","local":"repo-creation-and-deletion","sections":[{"title":"Create a repository","local":"create-a-repository","sections":[],"depth":3},{"title":"Delete a repository","local":"delete-a-repository","sections":[],"depth":3},{"title":"Duplicate a repository (only for Spaces)","local":"duplicate-a-repository-only-for-spaces","sections":[],"depth":3}],"depth":2},{"title":"Upload and download files","local":"upload-and-download-files","sections":[],"depth":2},{"title":"Branches and tags","local":"branches-and-tags","sections":[{"title":"Create branches and tags","local":"create-branches-and-tags","sections":[],"depth":3},{"title":"List all branches and tags","local":"list-all-branches-and-tags","sections":[],"depth":3}],"depth":2},{"title":"Change repository settings","local":"change-repository-settings","sections":[{"title":"Update visibility","local":"update-visibility","sections":[],"depth":3},{"title":"Rename your repository","local":"rename-your-repository","sections":[],"depth":3}],"depth":2},{"title":"Manage a local copy of your repository","local":"manage-a-local-copy-of-your-repository","sections":[{"title":"Use a local repository","local":"use-a-local-repository","sections":[],"depth":3},{"title":"Clone","local":"clone","sections":[],"depth":3},{"title":"Branch","local":"branch","sections":[],"depth":3},{"title":"Pull","local":"pull","sections":[],"depth":3}],"depth":2}],"depth":1}';function Aa(w){return La(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class as extends Fa{constructor(u){super(),Na(this,u,Aa,Qa,Ia,{})}}export{as as component};
