2025-04-15 20:25:09 +05:00

33 lines
684 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Работа с ветками
slug: knowledge-base/rabota-s-git/osnovnye-komandy/rabota-s-vetkami
---
Git позволяет работать с несколькими версиями проекта одновременно с помощью веток (branches).
### Создание новой ветки:
```bash
git branch feature-x
```
### Переход на ветку:
```bash
git checkout feature-x
```
### Создание и переход одновременно:
```bash
git checkout -b feature-x
```
### Просмотр всех веток:
```bash
git branch
```
Текущая ветка будет отмечена звёздочкой `*`.