# Миграция Git BoxExchanger

### Начало работы

1. Зарегестрировать в git системе [git.boxexchanger.net](https://git.boxexchanger.net)
2. [Добавить своего user](/dlya-razrabotchikov/dostup-k-iskhodnomu-kodu.md)
3. Если необходимо добавьте свой SSH ключь в аккаунт в <https://git.boxexchanger.net/-/profile/keys>\
   или добавье Deploy token в проект

### Команда для автоматического исправления .git/config

Данная команда изменит в файле .git/config путь к серверу git изменить `gitlab.com` на путь к новому серверу `ssh.boxexchanger.net`&#x20;

```bash
awk '{gsub("gitlab.com", "ssh.boxexchanger.net")}1' .git/config > temp && mv temp .git/config
```

### Или изменить вручную  host

В файле нужно изменить `git@gitlab.com:` на `git@ssh.boxexchanger.net:`

Пример:

```
[remote "origin"]
        url = git@ssh.boxexchanger.net:boxexchanger/exchanger-api.git
        fetch = +refs/heads/*:refs/remotes/origin/*
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.boxexchanger.net/dlya-razrabotchikov/migraciya-git-boxexchanger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
