Transition to a Compiler: Create a Git Branch
We are done with the calculator. But maybe you want to keep it. In this case create a new branch, e.g. calc with
1 | git branch calc
|
and push it to your remote repository with
1 | git push origin calc
|
The master branch will become the ABC compiler. With
1 | git checkout <branch-name>
|
you can switch to a branch. That means with git checkout master you switch to the compiler brnach, and with git checkout calc_ to the calculator branch.
With
1 | git branch -a
|
you get a list with all local and remote branches.