Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'origin/main' into duplicate-status
# Conflicts:
#	docs/source/en/guides/repository.md
  • Loading branch information
Wauplin committed Oct 1, 2026
commit b98c8d6cf913fb88badf829b8f985dfba2ca318e
2 changes: 2 additions & 0 deletions docs/source/en/guides/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ RepoUrl('https://huggingface.co/spaces/nateraw/dreambooth-training',...)
RepoUrl('https://huggingface.co/datasets/nateraw/gdpval',...)
```

Like [`create_repo`], [`duplicate_repo`] accepts a `resource_group_id` to create the copy directly inside a resource group of your Enterprise organization (`--resource-group-id` with `hf repos duplicate`).

The git history is copied right away, but the LFS/Xet files may still be copied in the background once [`duplicate_repo`] returns. Until the copy is complete, downloading these files from the new repo may fail. Check `files_copy_pending` on the returned value to know if the copy is still in progress:

```py
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.