# Git. Основные команды

В самые часто используемые команды можно выделить:

Инициализировать репозиторий:

```
git init
```

Показать статус репозитория:

```
git status
```

Коммитит с указанием комментария и автоматической индексацией:

```
git commit -a -m 'Initial commit'
```

Загрузить ветку branch в рабочую директорию:

```
git checkout branch'
```

Клонировать репозиторий:

```
git clone https://github.com/Kreisfahrer/Infotex.git ./
```

Извлечь (fetch) всю информацию, которая есть в репозитории origin:

```
git fetch origin
```

Извлечь всю информацию, которая есть в репозитории origin и загрузить обновления в рабочую директорию:

```
git pull origin
```

Отправить (push) код в ветку master удаленного репозитория pb:

```
git push origin master
```

Вопрос 1. Следует ли сюда добавить команду справки? Напишите ее 4 возможных варианта.


---

# 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://comaqa.gitbook.io/java-automation/sistemy-kontrolya-versii.-git/git.-osnovnye-komandy.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.
