0

We have currently been working on a separate git branch which has now been merged into the master and the development branch is to be deleted but Im afraid the commit messages for the development branch will also be deleted.

Is there a way of transferring the messages to the master branch?

Stanley Ngumo
  • 4,089
  • 8
  • 44
  • 64
  • If you're not doing doing a squash merge, the commits themselves aren't lost, and neither are the messages. – bejado Feb 27 '17 at 05:33
  • @bejado Even after deleting the branch?? Im a bit hesitant there – Stanley Ngumo Feb 27 '17 at 05:40
  • Deleting a branch doesn't delete the commits themselves, it only deletes a "pointer" to a specific commit. As long as all of your development branch commits are accessible via a branch (which they are- master now contains them) git will not garbage collect them. – bejado Feb 27 '17 at 05:42

1 Answers1

0

Deleting a branch will not delete the commits made in the branch. They will still show up in the repo network/history.Example in GitLab

brah
  • 9
  • 3