S
S
Sergey Erin2019-11-07 12:37:31
git
Sergey Erin, 2019-11-07 12:37:31

Is it possible to rollback and merge changes in Git?

Friends, I have never done this before, so I apologize for a possibly stupid question. Reverted changes in a separate branch using git checkout to a specific commit. If I now merge this branch into master, will these changes work? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2019-11-07
@artalexs

So you didn't roll back. You have switched.
To roll back a branch to a specific commit, you need to do a reset.
no, it won't work. You need to do either a revert or a reset

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question