GIT branch

What is a branch in GIT and why would one use it?

  • It’s a way of making a version of the code where we can try something out independently and when we are ready we merge that code back into the main branch.

  • We can use to solve all sorts of organizational problems with development, for instance

    • If we trying a risky change and we don’t want to commit to it or interfere with the rest of the team while we do it.

 

git branch PythonRemove git checkout PythonRemove

 

Git - Basic Branching and Merging