-2

I have following Branches

a) Master

b) Master/Test-1

c) Master/Test-2

I have few commits on Master/Test-1 branch. I had cherry-pick on Master/Test-2 branch from above commit hash. if i delete Master/Test-1 branch. Is cherry-pick changes will be present on Master/Test-2 or not ?

  • 1
    You see how when you cherry-picked, the new commit got a new hash? Then it's a new commit, separate from the old one. And since it's referenced by a branch, it will remain in existence. – underscore_d Jul 02 '20 at 11:38

1 Answers1

2

While there is any reference to commit, git not remove this commit.

Leszek Mazur
  • 2,443
  • 1
  • 14
  • 28