A branch is a lightweight, movable pointer to a commit. The default branch is usually called main (or master).
git branch # list all branches (* = current)
git branch feature-x # create a new branch
git switch feature-x # switch to it
git switch -c hotfix # create AND switch in one step (modern)
git checkout -b hotfix # older syntax, same result
mainBranches are cheap in Git — they're just a 41-byte file pointing to a commit hash. Create them freely.
Starting from main with one commit, create and switch to a new branch called feature. Then create feature.txt and commit it.
Click "Run" to execute your code.