M
M
Morfeey2019-08-28 11:30:45
git
Morfeey, 2019-08-28 11:30:45

How to backup a branch?

I have a local branch that has several commits that I need to merge (by the way, if you tell me how to do this, I don’t mind), but before that I need to make a backup of the branch.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gribanov, 2019-08-29
@gribanov2la

merge commits through git rebase -i HEAD( https://git-scm.com/book/ru/v1/%D0%98%D0%BD%D1%81%...
"Backup" of the current branch can be done like this
git checkout -b backup_branch_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question