Writing code
You’re almost at the point where you can start coding. First, you’ll need a Git branch to commit the code to. Then, you’ll need a MR so that you can see the results of pipeline tasks that run against that code, and also so that you can eventually merge the code into the main
branch. Let’s go over those steps, and then make and push your first commit.
Creating a Git branch to work on
Now that we’re ready to add the login feature requested by our first assigned issue, we need a Git branch to commit to. We might as well name our branch after the title of the issue we’re working on:
git branch add-login-feature
Switch onto the new branch so any new commits end up on that branch and not on the main
branch:
git checkout add-login-feature
At this point, we might as well push this branch up to the GitLab-hosted copy of the repository so that it exists in both places. For the first push, we need to use a slightly longer...