A
A
aris-paskalov2022-01-11 13:30:50
git
aris-paskalov, 2022-01-11 13:30:50

How to rollback the creation of a branch in git?

I have a master branch and a new update branch

. I committed all the changed files in update, which is why these changes disappeared from master.
I want to delete the update branch and have all changes returned to master

Please tell me, if I just delete the update branch, will the changes be lost somewhere, or go back to master?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2022-01-11
@aris-paskalov

Switch to the master branch and run the command git merge update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question