It is good practice to create git branches to code on before merging it back into the master branch but did you know that you should also consider deleting those old branches?

I was cleaning up my code when it crossed my mind on whether it’s ok to reuse a git branch after merging it in with the master.

In my quest for a clear answer it turned out that I needed a better understanding of some key concepts like: Git, commits, branches and so on.

What Is Git?

It’s a version control system for source code management where each copy or repo of the code has the full history of commits and changes.

Basically, you can work on multiple versions of a project each with their own branch. Imagine several branches running parallel to each other.

Branches running parallel

#git #git-merge #coding #git-commands #git-branch

Branching Out and Deleting Branches
1.40 GEEK