import{s as Qa,o as Aa,n as pa}from"../chunks/scheduler.6062bdaf.js";import{S as Ea,i as Da,g as h,s as n,r as i,A as Ka,h as f,f as a,c as l,j as za,u as r,x as m,k as Pa,y as Oa,a as s,v as o,d as p,t as g,w as c}from"../chunks/index.4bca734e.js";import{T as oa}from"../chunks/Tip.b9ac1f03.js";import{C as d}from"../chunks/CodeBlock.cbbddafc.js";import{H as $,E as es}from"../chunks/index.fb1f0efe.js";function ts(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:pa,d(y){y&&a(u)}}}function as(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:pa,d(y){y&&a(u)}}}function ss(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:pa,d(y){y&&a(u)}}}function ns(w){let u,b,y,_,j,Fe,J,ga=`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:`,We,k,ca="<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>",Se,M,Ve,G,ha=`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.`,ze,U,Pe,Z,fa=`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.`,Qe,H,Ae,C,ma='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>.',Ee,X,De,x,ua='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:',Ke,Y,Oe,R,ya="When you create a repository, you can set your repository visibility with the <code>private</code> parameter.",et,q,tt,I,da='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_settings">update_repo_settings()</a> function.',at,T,st,L,nt,B,$a='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!',lt,N,ba="Specify the <code>repo_id</code> of the repository you want to delete:",it,F,rt,W,ot,S,_a=`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.`,pt,V,gt,z,ct,P,wa="Now that you have created your repository, you are interested in pushing changes to it and downloading files from it.",ht,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.`,ft,A,mt,E,Ta=`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>.`,ut,D,yt,K,va='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>:',dt,O,$t,ee,ja='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.',bt,te,_t,ae,Ja='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>:',wt,se,Mt,ne,Tt,le,ka=`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>.`,vt,ie,Ga='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.',jt,re,Jt,oe,Ua="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:",kt,pe,Gt,ge,Ut,ce,Za="To give more control over how repos are used, the Hub allows repo authors to enable <strong>access requests</strong> for their repos. User must agree to share their contact information (username and email address) with the repo authors to access the files when enabled. A repo with access requests enabled is called a <strong>gated repo</strong>.",Zt,he,Ha='You can set a repo as gated using <a href="/docs/huggingface_hub/main/en/package_reference/hf_api#huggingface_hub.HfApi.update_repo_settings">update_repo_settings()</a>:',Ht,fe,Ct,me,Xt,ue,Ca=`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.`,xt,ye,Yt,de,Rt,$e,Xa=`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.`,qt,be,xa='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).',It,v,Lt,_e,Bt,we,Ya='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:',Nt,Me,Ft,Te,Wt,ve,Ra="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:",St,je,Vt,Je,qa="<code>clone_from</code> can also clone a repository using a URL:",zt,ke,Pt,Ge,Ia='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:',Qt,Ue,At,Ze,La="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.",Et,He,Dt,Ce,Kt,Xe,Ba='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>:',Ot,xe,ea,Ye,ta,Re,Na='<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:',aa,qe,sa,Ie,Fa="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:",na,Le,la,Be,ia,Ne,ra;return j=new $({props:{title:"Create and manage a repository",local:"create-and-manage-a-repository",headingTag:"h1"}}),M=new oa({props:{warning:!0,$$slots:{default:[ts]},$$scope:{ctx:w}}}),U=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}}),Y=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}}),T=new oa({props:{$$slots:{default:[as]},$$scope:{ctx:w}}}),L=new $({props:{title:"Delete a repository",local:"delete-a-repository",headingTag:"h3"}}),F=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"}}),V=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}}),z=new $({props:{title:"Upload and download files",local:"upload-and-download-files",headingTag:"h2"}}),A=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:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMHVwZGF0ZV9yZXBvX3NldHRpbmdzJTBBdXBkYXRlX3JlcG9fc2V0dGluZ3MocmVwb19pZCUzRHJlcG9faWQlMkMlMjBwcml2YXRlJTNEVHJ1ZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> update_repo_settings
<span class="hljs-meta">&gt;&gt;&gt; </span>update_repo_settings(repo_id=repo_id, private=<span class="hljs-literal">True</span>)`,wrap:!1}}),ge=new $({props:{title:"Setup gated access",local:"setup-gated-access",headingTag:"h3"}}),fe=new d({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMEhmQXBpJTBBJTBBYXBpJTIwJTNEJTIwSGZBcGkoKSUwQWFwaS51cGRhdGVfcmVwb19zZXR0aW5ncyhyZXBvX2lkJTNEcmVwb19pZCUyQyUyMGdhdGVkJTNEJTIyYXV0byUyMiklMjAlMjAlMjMlMjBTZXQlMjBhdXRvbWF0aWMlMjBnYXRpbmclMjBmb3IlMjBhJTIwbW9kZWw=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> HfApi

<span class="hljs-meta">&gt;&gt;&gt; </span>api = HfApi()
<span class="hljs-meta">&gt;&gt;&gt; </span>api.update_repo_settings(repo_id=repo_id, gated=<span class="hljs-string">&quot;auto&quot;</span>)  <span class="hljs-comment"># Set automatic gating for a model</span>`,wrap:!1}}),me=new $({props:{title:"Rename your repository",local:"rename-your-repository",headingTag:"h3"}}),ye=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}}),de=new $({props:{title:"Manage a local copy of your repository",local:"manage-a-local-copy-of-your-repository",headingTag:"h2"}}),v=new oa({props:{warning:!0,$$slots:{default:[ss]},$$scope:{ctx:w}}}),_e=new $({props:{title:"Use a local repository",local:"use-a-local-repository",headingTag:"h3"}}),Me=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}}),Te=new $({props:{title:"Clone",local:"clone",headingTag:"h3"}}),je=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}}),ke=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}}),Ue=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}}),He=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}}),Ce=new $({props:{title:"Branch",local:"branch",headingTag:"h3"}}),xe=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}}),Ye=new $({props:{title:"Pull",local:"pull",headingTag:"h3"}}),qe=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}}),Le=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}}),Be=new es({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),Fe=n(),J=h("p"),J.innerHTML=ga,We=n(),k=h("ul"),k.innerHTML=ca,Se=n(),i(M.$$.fragment),Ve=n(),G=h("p"),G.innerHTML=ha,ze=n(),i(U.$$.fragment),Pe=n(),Z=h("p"),Z.textContent=fa,Qe=n(),i(H.$$.fragment),Ae=n(),C=h("p"),C.innerHTML=ma,Ee=n(),i(X.$$.fragment),De=n(),x=h("p"),x.innerHTML=ua,Ke=n(),i(Y.$$.fragment),Oe=n(),R=h("p"),R.innerHTML=ya,et=n(),i(q.$$.fragment),tt=n(),I=h("p"),I.innerHTML=da,at=n(),i(T.$$.fragment),st=n(),i(L.$$.fragment),nt=n(),B=h("p"),B.innerHTML=$a,lt=n(),N=h("p"),N.innerHTML=ba,it=n(),i(F.$$.fragment),rt=n(),i(W.$$.fragment),ot=n(),S=h("p"),S.innerHTML=_a,pt=n(),i(V.$$.fragment),gt=n(),i(z.$$.fragment),ct=n(),P=h("p"),P.textContent=wa,ht=n(),Q=h("p"),Q.innerHTML=Ma,ft=n(),i(A.$$.fragment),mt=n(),E=h("p"),E.innerHTML=Ta,ut=n(),i(D.$$.fragment),yt=n(),K=h("p"),K.innerHTML=va,dt=n(),i(O.$$.fragment),$t=n(),ee=h("p"),ee.innerHTML=ja,bt=n(),i(te.$$.fragment),_t=n(),ae=h("p"),ae.innerHTML=Ja,wt=n(),i(se.$$.fragment),Mt=n(),i(ne.$$.fragment),Tt=n(),le=h("p"),le.innerHTML=ka,vt=n(),ie=h("p"),ie.innerHTML=Ga,jt=n(),i(re.$$.fragment),Jt=n(),oe=h("p"),oe.textContent=Ua,kt=n(),i(pe.$$.fragment),Gt=n(),i(ge.$$.fragment),Ut=n(),ce=h("p"),ce.innerHTML=Za,Zt=n(),he=h("p"),he.innerHTML=Ha,Ht=n(),i(fe.$$.fragment),Ct=n(),i(me.$$.fragment),Xt=n(),ue=h("p"),ue.innerHTML=Ca,xt=n(),i(ye.$$.fragment),Yt=n(),i(de.$$.fragment),Rt=n(),$e=h("p"),$e.textContent=Xa,qt=n(),be=h("p"),be.innerHTML=xa,It=n(),i(v.$$.fragment),Lt=n(),i(_e.$$.fragment),Bt=n(),we=h("p"),we.innerHTML=Ya,Nt=n(),i(Me.$$.fragment),Ft=n(),i(Te.$$.fragment),Wt=n(),ve=h("p"),ve.innerHTML=Ra,St=n(),i(je.$$.fragment),Vt=n(),Je=h("p"),Je.innerHTML=qa,zt=n(),i(ke.$$.fragment),Pt=n(),Ge=h("p"),Ge.innerHTML=Ia,Qt=n(),i(Ue.$$.fragment),At=n(),Ze=h("p"),Ze.innerHTML=La,Et=n(),i(He.$$.fragment),Dt=n(),i(Ce.$$.fragment),Kt=n(),Xe=h("p"),Xe.innerHTML=Ba,Ot=n(),i(xe.$$.fragment),ea=n(),i(Ye.$$.fragment),ta=n(),Re=h("p"),Re.innerHTML=Na,aa=n(),i(qe.$$.fragment),sa=n(),Ie=h("p"),Ie.innerHTML=Fa,na=n(),i(Le.$$.fragment),la=n(),i(Be.$$.fragment),ia=n(),Ne=h("p"),this.h()},l(e){const t=Ka("svelte-u9bgzb",document.head);u=f(t,"META",{name:!0,content:!0}),t.forEach(a),b=l(e),y=f(e,"P",{}),za(y).forEach(a),_=l(e),r(j.$$.fragment,e),Fe=l(e),J=f(e,"P",{"data-svelte-h":!0}),m(J)!=="svelte-15r6soe"&&(J.innerHTML=ga),We=l(e),k=f(e,"UL",{"data-svelte-h":!0}),m(k)!=="svelte-jzhbqw"&&(k.innerHTML=ca),Se=l(e),r(M.$$.fragment,e),Ve=l(e),G=f(e,"P",{"data-svelte-h":!0}),m(G)!=="svelte-1u5cce3"&&(G.innerHTML=ha),ze=l(e),r(U.$$.fragment,e),Pe=l(e),Z=f(e,"P",{"data-svelte-h":!0}),m(Z)!=="svelte-1yl5xsc"&&(Z.textContent=fa),Qe=l(e),r(H.$$.fragment,e),Ae=l(e),C=f(e,"P",{"data-svelte-h":!0}),m(C)!=="svelte-lwdt4f"&&(C.innerHTML=ma),Ee=l(e),r(X.$$.fragment,e),De=l(e),x=f(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-thoypj"&&(x.innerHTML=ua),Ke=l(e),r(Y.$$.fragment,e),Oe=l(e),R=f(e,"P",{"data-svelte-h":!0}),m(R)!=="svelte-1lhlim8"&&(R.innerHTML=ya),et=l(e),r(q.$$.fragment,e),tt=l(e),I=f(e,"P",{"data-svelte-h":!0}),m(I)!=="svelte-meq751"&&(I.innerHTML=da),at=l(e),r(T.$$.fragment,e),st=l(e),r(L.$$.fragment,e),nt=l(e),B=f(e,"P",{"data-svelte-h":!0}),m(B)!=="svelte-wzuy4v"&&(B.innerHTML=$a),lt=l(e),N=f(e,"P",{"data-svelte-h":!0}),m(N)!=="svelte-130g6n6"&&(N.innerHTML=ba),it=l(e),r(F.$$.fragment,e),rt=l(e),r(W.$$.fragment,e),ot=l(e),S=f(e,"P",{"data-svelte-h":!0}),m(S)!=="svelte-1mzmozw"&&(S.innerHTML=_a),pt=l(e),r(V.$$.fragment,e),gt=l(e),r(z.$$.fragment,e),ct=l(e),P=f(e,"P",{"data-svelte-h":!0}),m(P)!=="svelte-1sdwkqa"&&(P.textContent=wa),ht=l(e),Q=f(e,"P",{"data-svelte-h":!0}),m(Q)!=="svelte-1sqatlx"&&(Q.innerHTML=Ma),ft=l(e),r(A.$$.fragment,e),mt=l(e),E=f(e,"P",{"data-svelte-h":!0}),m(E)!=="svelte-1rc0mjs"&&(E.innerHTML=Ta),ut=l(e),r(D.$$.fragment,e),yt=l(e),K=f(e,"P",{"data-svelte-h":!0}),m(K)!=="svelte-gzsa62"&&(K.innerHTML=va),dt=l(e),r(O.$$.fragment,e),$t=l(e),ee=f(e,"P",{"data-svelte-h":!0}),m(ee)!=="svelte-1f5b75n"&&(ee.innerHTML=ja),bt=l(e),r(te.$$.fragment,e),_t=l(e),ae=f(e,"P",{"data-svelte-h":!0}),m(ae)!=="svelte-1jcko64"&&(ae.innerHTML=Ja),wt=l(e),r(se.$$.fragment,e),Mt=l(e),r(ne.$$.fragment,e),Tt=l(e),le=f(e,"P",{"data-svelte-h":!0}),m(le)!=="svelte-1nx84sp"&&(le.innerHTML=ka),vt=l(e),ie=f(e,"P",{"data-svelte-h":!0}),m(ie)!=="svelte-16vpsz9"&&(ie.innerHTML=Ga),jt=l(e),r(re.$$.fragment,e),Jt=l(e),oe=f(e,"P",{"data-svelte-h":!0}),m(oe)!=="svelte-17yd1o0"&&(oe.textContent=Ua),kt=l(e),r(pe.$$.fragment,e),Gt=l(e),r(ge.$$.fragment,e),Ut=l(e),ce=f(e,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-6r9wzi"&&(ce.innerHTML=Za),Zt=l(e),he=f(e,"P",{"data-svelte-h":!0}),m(he)!=="svelte-iyml60"&&(he.innerHTML=Ha),Ht=l(e),r(fe.$$.fragment,e),Ct=l(e),r(me.$$.fragment,e),Xt=l(e),ue=f(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-1cnzwe6"&&(ue.innerHTML=Ca),xt=l(e),r(ye.$$.fragment,e),Yt=l(e),r(de.$$.fragment,e),Rt=l(e),$e=f(e,"P",{"data-svelte-h":!0}),m($e)!=="svelte-y0ecwu"&&($e.textContent=Xa),qt=l(e),be=f(e,"P",{"data-svelte-h":!0}),m(be)!=="svelte-ghromy"&&(be.innerHTML=xa),It=l(e),r(v.$$.fragment,e),Lt=l(e),r(_e.$$.fragment,e),Bt=l(e),we=f(e,"P",{"data-svelte-h":!0}),m(we)!=="svelte-1mswhvc"&&(we.innerHTML=Ya),Nt=l(e),r(Me.$$.fragment,e),Ft=l(e),r(Te.$$.fragment,e),Wt=l(e),ve=f(e,"P",{"data-svelte-h":!0}),m(ve)!=="svelte-1efx20p"&&(ve.innerHTML=Ra),St=l(e),r(je.$$.fragment,e),Vt=l(e),Je=f(e,"P",{"data-svelte-h":!0}),m(Je)!=="svelte-1kdxyrq"&&(Je.innerHTML=qa),zt=l(e),r(ke.$$.fragment,e),Pt=l(e),Ge=f(e,"P",{"data-svelte-h":!0}),m(Ge)!=="svelte-alo6um"&&(Ge.innerHTML=Ia),Qt=l(e),r(Ue.$$.fragment,e),At=l(e),Ze=f(e,"P",{"data-svelte-h":!0}),m(Ze)!=="svelte-2rn2fx"&&(Ze.innerHTML=La),Et=l(e),r(He.$$.fragment,e),Dt=l(e),r(Ce.$$.fragment,e),Kt=l(e),Xe=f(e,"P",{"data-svelte-h":!0}),m(Xe)!=="svelte-1hmns4m"&&(Xe.innerHTML=Ba),Ot=l(e),r(xe.$$.fragment,e),ea=l(e),r(Ye.$$.fragment,e),ta=l(e),Re=f(e,"P",{"data-svelte-h":!0}),m(Re)!=="svelte-uwa6sa"&&(Re.innerHTML=Na),aa=l(e),r(qe.$$.fragment,e),sa=l(e),Ie=f(e,"P",{"data-svelte-h":!0}),m(Ie)!=="svelte-199y79p"&&(Ie.innerHTML=Fa),na=l(e),r(Le.$$.fragment,e),la=l(e),r(Be.$$.fragment,e),ia=l(e),Ne=f(e,"P",{}),za(Ne).forEach(a),this.h()},h(){Pa(u,"name","hf:doc:metadata"),Pa(u,"content",ls)},m(e,t){Oa(document.head,u),s(e,b,t),s(e,y,t),s(e,_,t),o(j,e,t),s(e,Fe,t),s(e,J,t),s(e,We,t),s(e,k,t),s(e,Se,t),o(M,e,t),s(e,Ve,t),s(e,G,t),s(e,ze,t),o(U,e,t),s(e,Pe,t),s(e,Z,t),s(e,Qe,t),o(H,e,t),s(e,Ae,t),s(e,C,t),s(e,Ee,t),o(X,e,t),s(e,De,t),s(e,x,t),s(e,Ke,t),o(Y,e,t),s(e,Oe,t),s(e,R,t),s(e,et,t),o(q,e,t),s(e,tt,t),s(e,I,t),s(e,at,t),o(T,e,t),s(e,st,t),o(L,e,t),s(e,nt,t),s(e,B,t),s(e,lt,t),s(e,N,t),s(e,it,t),o(F,e,t),s(e,rt,t),o(W,e,t),s(e,ot,t),s(e,S,t),s(e,pt,t),o(V,e,t),s(e,gt,t),o(z,e,t),s(e,ct,t),s(e,P,t),s(e,ht,t),s(e,Q,t),s(e,ft,t),o(A,e,t),s(e,mt,t),s(e,E,t),s(e,ut,t),o(D,e,t),s(e,yt,t),s(e,K,t),s(e,dt,t),o(O,e,t),s(e,$t,t),s(e,ee,t),s(e,bt,t),o(te,e,t),s(e,_t,t),s(e,ae,t),s(e,wt,t),o(se,e,t),s(e,Mt,t),o(ne,e,t),s(e,Tt,t),s(e,le,t),s(e,vt,t),s(e,ie,t),s(e,jt,t),o(re,e,t),s(e,Jt,t),s(e,oe,t),s(e,kt,t),o(pe,e,t),s(e,Gt,t),o(ge,e,t),s(e,Ut,t),s(e,ce,t),s(e,Zt,t),s(e,he,t),s(e,Ht,t),o(fe,e,t),s(e,Ct,t),o(me,e,t),s(e,Xt,t),s(e,ue,t),s(e,xt,t),o(ye,e,t),s(e,Yt,t),o(de,e,t),s(e,Rt,t),s(e,$e,t),s(e,qt,t),s(e,be,t),s(e,It,t),o(v,e,t),s(e,Lt,t),o(_e,e,t),s(e,Bt,t),s(e,we,t),s(e,Nt,t),o(Me,e,t),s(e,Ft,t),o(Te,e,t),s(e,Wt,t),s(e,ve,t),s(e,St,t),o(je,e,t),s(e,Vt,t),s(e,Je,t),s(e,zt,t),o(ke,e,t),s(e,Pt,t),s(e,Ge,t),s(e,Qt,t),o(Ue,e,t),s(e,At,t),s(e,Ze,t),s(e,Et,t),o(He,e,t),s(e,Dt,t),o(Ce,e,t),s(e,Kt,t),s(e,Xe,t),s(e,Ot,t),o(xe,e,t),s(e,ea,t),o(Ye,e,t),s(e,ta,t),s(e,Re,t),s(e,aa,t),o(qe,e,t),s(e,sa,t),s(e,Ie,t),s(e,na,t),o(Le,e,t),s(e,la,t),o(Be,e,t),s(e,ia,t),s(e,Ne,t),ra=!0},p(e,[t]){const Wa={};t&2&&(Wa.$$scope={dirty:t,ctx:e}),M.$set(Wa);const Sa={};t&2&&(Sa.$$scope={dirty:t,ctx:e}),T.$set(Sa);const Va={};t&2&&(Va.$$scope={dirty:t,ctx:e}),v.$set(Va)},i(e){ra||(p(j.$$.fragment,e),p(M.$$.fragment,e),p(U.$$.fragment,e),p(H.$$.fragment,e),p(X.$$.fragment,e),p(Y.$$.fragment,e),p(q.$$.fragment,e),p(T.$$.fragment,e),p(L.$$.fragment,e),p(F.$$.fragment,e),p(W.$$.fragment,e),p(V.$$.fragment,e),p(z.$$.fragment,e),p(A.$$.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(ge.$$.fragment,e),p(fe.$$.fragment,e),p(me.$$.fragment,e),p(ye.$$.fragment,e),p(de.$$.fragment,e),p(v.$$.fragment,e),p(_e.$$.fragment,e),p(Me.$$.fragment,e),p(Te.$$.fragment,e),p(je.$$.fragment,e),p(ke.$$.fragment,e),p(Ue.$$.fragment,e),p(He.$$.fragment,e),p(Ce.$$.fragment,e),p(xe.$$.fragment,e),p(Ye.$$.fragment,e),p(qe.$$.fragment,e),p(Le.$$.fragment,e),p(Be.$$.fragment,e),ra=!0)},o(e){g(j.$$.fragment,e),g(M.$$.fragment,e),g(U.$$.fragment,e),g(H.$$.fragment,e),g(X.$$.fragment,e),g(Y.$$.fragment,e),g(q.$$.fragment,e),g(T.$$.fragment,e),g(L.$$.fragment,e),g(F.$$.fragment,e),g(W.$$.fragment,e),g(V.$$.fragment,e),g(z.$$.fragment,e),g(A.$$.fragment,e),g(D.$$.fragment,e),g(O.$$.fragment,e),g(te.$$.fragment,e),g(se.$$.fragment,e),g(ne.$$.fragment,e),g(re.$$.fragment,e),g(pe.$$.fragment,e),g(ge.$$.fragment,e),g(fe.$$.fragment,e),g(me.$$.fragment,e),g(ye.$$.fragment,e),g(de.$$.fragment,e),g(v.$$.fragment,e),g(_e.$$.fragment,e),g(Me.$$.fragment,e),g(Te.$$.fragment,e),g(je.$$.fragment,e),g(ke.$$.fragment,e),g(Ue.$$.fragment,e),g(He.$$.fragment,e),g(Ce.$$.fragment,e),g(xe.$$.fragment,e),g(Ye.$$.fragment,e),g(qe.$$.fragment,e),g(Le.$$.fragment,e),g(Be.$$.fragment,e),ra=!1},d(e){e&&(a(b),a(y),a(_),a(Fe),a(J),a(We),a(k),a(Se),a(Ve),a(G),a(ze),a(Pe),a(Z),a(Qe),a(Ae),a(C),a(Ee),a(De),a(x),a(Ke),a(Oe),a(R),a(et),a(tt),a(I),a(at),a(st),a(nt),a(B),a(lt),a(N),a(it),a(rt),a(ot),a(S),a(pt),a(gt),a(ct),a(P),a(ht),a(Q),a(ft),a(mt),a(E),a(ut),a(yt),a(K),a(dt),a($t),a(ee),a(bt),a(_t),a(ae),a(wt),a(Mt),a(Tt),a(le),a(vt),a(ie),a(jt),a(Jt),a(oe),a(kt),a(Gt),a(Ut),a(ce),a(Zt),a(he),a(Ht),a(Ct),a(Xt),a(ue),a(xt),a(Yt),a(Rt),a($e),a(qt),a(be),a(It),a(Lt),a(Bt),a(we),a(Nt),a(Ft),a(Wt),a(ve),a(St),a(Vt),a(Je),a(zt),a(Pt),a(Ge),a(Qt),a(At),a(Ze),a(Et),a(Dt),a(Kt),a(Xe),a(Ot),a(ea),a(ta),a(Re),a(aa),a(sa),a(Ie),a(na),a(la),a(ia),a(Ne)),a(u),c(j,e),c(M,e),c(U,e),c(H,e),c(X,e),c(Y,e),c(q,e),c(T,e),c(L,e),c(F,e),c(W,e),c(V,e),c(z,e),c(A,e),c(D,e),c(O,e),c(te,e),c(se,e),c(ne,e),c(re,e),c(pe,e),c(ge,e),c(fe,e),c(me,e),c(ye,e),c(de,e),c(v,e),c(_e,e),c(Me,e),c(Te,e),c(je,e),c(ke,e),c(Ue,e),c(He,e),c(Ce,e),c(xe,e),c(Ye,e),c(qe,e),c(Le,e),c(Be,e)}}}const ls='{"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":"Setup gated access","local":"setup-gated-access","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 is(w){return Aa(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class hs extends Ea{constructor(u){super(),Da(this,u,is,ns,Qa,{})}}export{hs as component};
