Branches

The branch switcher sits above the files; the list of branches and tags is on the branches page, where you also create and delete branches.

Who can use this Creating and deleting branches requires write access.

Updated Copy as Markdown
In this article

Switch the branch#

Above the files table is a switcher with the name of the current branch. It lists all branches and tags of the repository; picking one opens the same files in another line of history.

Create a branch#

  1. Open the branches page: switcher → list, or the address /{owner}/{name}/branches.
  2. Press + New branch and enter a name. The branch is created from the currently selected one (the «from …» label).
  3. Switch to it and edit files — the commits go into it.

You can also create a branch from your computer: git switch -c name and git push -u origin name.

Delete a branch#

Every branch on the branches page can be deleted. If the branch has commits that exist nowhere else, SKILLOK warns you and asks for confirmation: they will be lost. The default branch cannot be deleted.

The default branch and protection#

The default branch is main: it opens first, and pull requests merge into it. To stop anyone writing to it directly, turn on protection in the settings — Branch protection.

Was this helpful?