Skip to content

Commit

Permalink
Update how-to-use-git-version-control-system.md
Browse files Browse the repository at this point in the history
Updated the name of the primary branch to main (as it's known nowadays), but also added Master in brackets for historic significance
  • Loading branch information
za4g authored Feb 11, 2024
1 parent 8cbf6af commit 0586be2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ You can **move the head** if you want. It does not necessarily have to always be

Heads mark the beginning of a revision history. In GIT, we call the "revision history" a "branch", and it is possible to have several revision histories.

By default, every repository has one branch called Master, with its corresponding HEAD that points to the last commit of that branch.
By default, every repository has one branch called Main (earlier known as Master), with its corresponding HEAD that points to the last commit of that branch.

For example: Let’s say that you are starting to develop the "Login" feature/functionality of a website. You can create a new "branch" of the repository called "login" so that your commits are not part of the main revision history of the project. Once you are comfortable with your code, you can then *merge* your branch and delete your head. This will reset the main HEAD of the master branch to the last commit you made and add your new code to the main branch (master) of the repository.

Expand Down

0 comments on commit 0586be2

Please sign in to comment.