This post attempts to clear up some of that confusion by offering a guide on how to successfully git switch branch in an easy and safe way. People often get confused when trying to manage their branches. In Git, the opposite is often true: branching is so cheap that most people do it a lot. They make a huge deal out of it, and developers just give up, preferring workflows that don’t rely on many branches. In most other VCS tools, branching is this elaborate ceremony. One of the most glaring examples of said differences is branching. Repositories in Git work in a fundamentally different way from most other tools.
The following is a guest blog post written by Carlos Schults.