Skip to content

Select Content Branch

bmen edited this page Mar 30, 2023 · 6 revisions

Git has different branches: main, content, development. You could describe it like this: Branches are a snapshot of all contents, i.e. files and directories of the main branch. This means that you can make changes in one branch without breaking anything in the main branch. If you want more informations about Git workflow, here you can find it When you are satisfied with your changes, you can merge them back into the main branch. What is a pull request, you will learn here: Perform pull Request. You can create as many branches as you want. In this case of ASKnet, we are dealing with three branches:

  • Main: This is the main branch from which the website is finally generated. In this branch, no changes can be made to the content directly. This is a protective mechanism to prevent unwanted changes from accidentally being made to the website. Therefore, a change must always be made in another branch and then transferred to the main branch with a pull request.
  • Content: Changes to the content can be made in this branch.
  • Development: Here technical changes are made to the website. E.g. a new page can be created or existing pages can be moved. Only experts who know the technology well should work here.

Change Branch before editing

Before you change content, you should switch to the Content Branch.

select-content-branch_1 select-content-branch_2

Clone this wiki locally