Undoing the Most Recent Commits in Git

Sometimes, however, you may find yourself in a situation where you need to undo the most recent local commits. Whether it’s due to a mistake, a change in project requirements, or any other reason, Git provides a straightforward way to revert local commits. In this blog entry, we’ll explore the steps to undo the most recent local commits in Git. Step 1: Verify Your Current Git Status Before you start undoing commits, it’s crucial to understand your current Git status....

January 20, 2024 · 3 min · 529 words · Me

Semantic Versioning Schema

Software versioning enables developers and users to understand changes, compatibility, and updates. One popular versioning scheme that has gained widespread adoption is Semantic Versioning (SemVer). In this blog post, we’ll explore what SemVer is, its origins, how it works, examples of its implementation, projects that use it, and the advantages and disadvantages, along with alternative versioning schemes. What is Semantic Versioning? Semantic Versioning, often abbreviated as SemVer, is a versioning scheme designed to communicate meaningful information about a software package through its version number....

January 18, 2024 · 3 min · 514 words · Me

Summary of 'Clean Code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability. General rules Follow standard conventions. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible. Boy scout rule. Leave the campground cleaner than you found it. Always find root cause....

January 12, 2024 · 3 min · 489 words · Wojtek Lukaszuk

How to Write a Git Commit Message

Writing good Git commit messages is crucial for maintaining a clean and understandable version history of your project. Clear commit messages help collaborators understand the purpose of each change and make it easier to review, revert, or analyze the history. Here are some guidelines for writing effective Git commit messages: 1. Separate subject from body Keep the subject line concise (50 characters or less). Add a blank line between the subject and the body....

December 29, 2023 · 2 min · 344 words · Me

Difference between `git merge` and `git rebase`

git merge and git rebase are both Git commands used for combining changes from different branches. However, they do so in different ways, and each has its advantages and use cases. Let’s delve into the technical details of each: git merge Description git merge integrates changes from one branch into another. It creates a new commit that combines the changes from the source branch into the target branch. This creates a merge commit that has two parent commits, representing the history of both branches....

December 27, 2023 · 3 min · 579 words · Me