L
L
Lola Gasanova2020-11-11 12:31:52
git
Lola Gasanova, 2020-11-11 12:31:52

How to make a git branch from commita?

5fabaf5653a9c620628302.png

for example, make a new step from m5

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2020-11-11
@Gasanovalola

All the black marks on your screenshot are already branches.
So you already have the m5 branch. It just doesn’t have a single commit of its own yet, so it hasn’t been singled out as a separate step.
So that

git switch m5
# редактируем
git commit
git push

and the m5 branch will have its own step.

A
Alexey P, 2020-11-11
@ruddy22

Stand on a commit, then git checkout -b

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question