CodeBlanks Logo Icon CodeBlanks

Overview

See the release workflow steps together.

Release workflow overview

When preparing a software release, it is important to complete changes in an organized order. First, the release point is marked with a tag, then the CHANGELOG file is updated and committed. Finally, the release commit is merged and the tag is pushed to the remote repository.

1. Prepare the release branch
2. Create an annotated tag
3. Update CHANGELOG
4. Commit and merge
5. Push the tag to the remote

The order of release steps

Completing each step during release preparation makes the next step more reliable. Updating CHANGELOG documents the changes included in the release, and a commit adds this record to Git history. After merging is complete, the release tag can be pushed to the remote repository.

Update CHANGELOG
       ↓
git commit
       ↓
git merge
       ↓
git push origin v1.0.0

Practice Arrange the release workflow

Print the five stages of a release preparation process in the correct order. Each stage must appear on a separate line.

Starter code

terminal
// Sürüm adımlarını sırayla yazdır

Sample solution

terminal
print("Annotated tag")
print("Update CHANGELOG")
print("Create commit")
print("Merge release")
print("Push tag")

Expected output

Annotated tag
Update CHANGELOG
Create commit
Merge release
Push tag

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 Which operation associates a release with a specific Git commit?

  • Deleting a remote
  • Unstaging files
  • Cloning a Git repository
  • Creating an annotated tag Correct answer

Explanation: A tag marks a specific commit as a release point. An annotated tag also stores a message and tag information.

2 Push the release record to the remote

Question
git push origin ____
Answer
git push origin v1.0.0

Explanation: In the final stage, the release tag is pushed to the remote repository. This makes the release point available remotely.

3 Release process stages

Term Meaning
Tag oluşturma Marking the release point
CHANGELOG Documenting changes
Merge Merging changes into a branch
Tag push Pushing the tag to remote

All lessons in Intermediate

20 Intermediate final

  1. Branch management
  2. Rebase
  3. Conflict
  4. PR flow