---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/qa/sourcecraft-git.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/qa/sourcecraft-git.md
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/ru/llms.txt

<!-- source: ru/_qa/sourcecraft/sourcecraft-git.md -->
# Вопросы и ответы про работу с git в SourceCraft

<!-- source: ru/_qa/sourcecraft/sourcecraft-git-toc.md -->
* [Как начать работать с git?](https://sourcecraft.dev/portal/docs/ru/sourcecraft/qa/sourcecraft-git.md#quickstart-git)
* [Ошибки в git при попытке отправить большой файл по протоколу HTTPS](https://sourcecraft.dev/portal/docs/ru/sourcecraft/qa/sourcecraft-git.md#large-file)
<!-- endsource: ru/_qa/sourcecraft/sourcecraft-git-toc.md -->

### Как начать работать с git? {#quickstart-git}

Подробное руководство по работе с [git](https://git-scm.com/) читайте в разделе [Как начать работать с git](https://sourcecraft.dev/portal/docs/ru/sourcecraft/tutorials/quickstart-git.md).

### Ошибки в git при попытке отправить большой файл по протоколу HTTPS {#large-file}

При попытке отправить большой файл через [git](https://git-scm.com/) по протоколу [HTTPS](https://yandex.cloud/ru/docs/glossary/ssl-certificate) могут возникать следующие ошибки:

* `send-pack: protocol error: bad band #XXX` — ошибка протокола при отправке данных: сервер получил некорректный пакет из-за переполнения буфера.
* `send-pack: unexpected disconnect while reading sideband packet` — неожиданный разрыв соединения при чтении пакета побочного канала данных (sideband).
* `fatal: the remote end hung up unexpectedly` — удаленный сервер принудительно закрыл соединение, не дождавшись окончания передачи данных.
* `error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500` — сервер вернул код HTTP 500 (внутренняя ошибка) при обработке RPC-запроса с большим телом.

Чтобы избежать этого, увеличьте буфер для HTTP-запросов POST в [конфигурации git](https://git-scm.com/docs/git-config) с помощью команды:

```bash
git config http.postBuffer 524288000
```

{% note tip %}

Для хранения больших файлов в репозитории рекомендуется использовать [Git Large File Storage (LFS)](https://sourcecraft.dev/portal/docs/ru/sourcecraft/operations/lfs.md).

{% endnote %}
<!-- endsource: ru/_qa/sourcecraft/sourcecraft-git.md -->