Hands-on task
Branch and merge
The project project lives in GitLab and is already cloned to /root/project; git push works right away (the web sign-in is on the GitLab tab).
Create a branch feature, add a new file feature.txt in it with a commit, switch back to main and merge feature into it. Then push both branches to GitLab: main with the merged feature.txt, and feature itself — it must stay.
In the GitLab web UI, check that feature.txt has appeared in main and that feature is in the list of branches.
- git
- branches
- merge
- checkout
- git push
- GitLab