---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://sourcecraft.dev/portal/docs/en/sourcecraft/qa/sourcecraft-git.md
  - https://sourcecraft.dev/portal/docs/ru/sourcecraft/qa/sourcecraft-git.md
  - href: en/sourcecraft/qa/sourcecraft-git.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://sourcecraft.dev/portal/docs/en/llms.txt

<!-- source: en/_qa/sourcecraft/sourcecraft-git.md -->
# FAQ about Git in SourceCraft

<!-- source: en/_qa/sourcecraft/sourcecraft-git-toc.md -->
* [How do I get started with Git?](https://sourcecraft.dev/portal/docs/en/sourcecraft/qa/sourcecraft-git.md#quickstart-git)
* [Git errors on attempts to send a large file over HTTPS](https://sourcecraft.dev/portal/docs/en/sourcecraft/qa/sourcecraft-git.md#large-file)
<!-- endsource: en/_qa/sourcecraft/sourcecraft-git-toc.md -->

### How do I get started with Git? {#quickstart-git}

For a detailed [Git](https://git-scm.com/) tutorial, see [Getting started with Git](https://sourcecraft.dev/portal/docs/en/sourcecraft/tutorials/quickstart-git.md).

### Errors in Git when attempting to send a large file over HTTPS {#large-file}

Attempting to send a large file via [Git](https://git-scm.com/) over HTTPS may cause the following errors:

* `send-pack: protocol error: bad band #XXX`: Protocol error while sending data. The server received an invalid packet due to a buffer overflow.
* `send-pack: unexpected disconnect while reading sideband packet`: Unexpected connection break while reading a sideband packet.
* `fatal: the remote end hung up unexpectedly`: The remote server forcibly closed the connection without waiting for the data transfer to complete.
* `error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500`: The server returned HTTP code 500 (internal error) while processing an RPC request with a large body.

To avoid this, increase the buffer for HTTP POST requests in the [Git configuration](https://git-scm.com/docs/git-config) by running this command:

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

{% note tip %}

To store large files in a repository, we recommend using [Git Large File Storage (LFS)](https://sourcecraft.dev/portal/docs/en/sourcecraft/operations/lfs.md).

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