1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
<!--⚠️ Note that this file is in Markdown but contains specific syntax for our doc-builder (similar to MDX) that may not be
rendered properly in your Markdown viewer.
-->
# 로컬 및 온라인 리포지토리 관리[[managing-local-and-online-repositories]]
`Repository` 클래스는 `git` 및 `git-lfs` 명령을 감싸는 도우미 클래스로, 매우 큰 리포지토리를 관리하는 데 적합한 툴링을 제공합니다.
`git` 작업이 포함되거나 리포지토리에서의 협업이 중점이 될 때 권장되는 도구입니다.
## 리포지토리 클래스[[the-repository-class]]
[[autodoc]] Repository
- __init__
- current_branch
- all
## 도우미 메소드[[helper-methods]]
[[autodoc]] huggingface_hub.repository.is_git_repo
[[autodoc]] huggingface_hub.repository.is_local_clone
[[autodoc]] huggingface_hub.repository.is_tracked_with_lfs
[[autodoc]] huggingface_hub.repository.is_git_ignored
[[autodoc]] huggingface_hub.repository.files_to_be_staged
[[autodoc]] huggingface_hub.repository.is_tracked_upstream
[[autodoc]] huggingface_hub.repository.commits_to_push
## 후속 비동기 명령[[following-asynchronous-commands]]
`Repository` 유틸리티는 비동기적으로 시작할 수 있는 여러 메소드를 제공합니다.
- `git_push`
- `git_pull`
- `push_to_hub`
- `commit` 컨텍스트 관리자
이러한 비동기 메소드를 관리하는 유틸리티는 아래를 참조하세요.
[[autodoc]] Repository
- commands_failed
- commands_in_progress
- wait_for_commands
[[autodoc]] huggingface_hub.repository.CommandInProgress
|