July 2018
Beginner
552 pages
13h 18m
English
Up until now, we have worked in a branch named master, which is the default branch when creating a new repository. But what are branches, exactly? One of the strengths of Git is that you can branch from your code to develop features, fix bugs, and so on. Since your initial branch is master, the next new branch will be based off of it. This is usually the development branch, also referred to as dev:
# New branchgit branch developgit checkout develop# Develop new stuffNew-Item NewFile2.ps1 -Value 'Restart-Computer'git add NewFile2.ps1git commit -m 'Implemented new awesome feature'
This setup enables us to have only productive code in the master and to develop new features in development. We will revisit this model when we talk about ...
Read now
Unlock full access