Skip to main content

41 posts tagged with "git"

git tag description

View All Tags

Conventional Commits Cheat Sheet 2026

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Conventional Commits is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history, which makes it easier for automated tools to parse and for humans to understand (1).

How to read and resolve Git merge conflicts without losing your mind?

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

The dreaded CONFLICT (content): Merge conflict in file.txt. For many developers, seeing this message triggers an immediate spike in heart rate. It feels like you broke something.

Take a deep breath. You didn't break anything. A merge conflict is simply Git throwing its hands up and saying, "Hey, two people changed the exact same line of code, and I am not smart enough to guess which one is right. I need a human."

Here is how to read the Matrix, resolve the conflict, and get on with your day without losing your mind.

How to use `git worktree list` to see all your linked branches and folders

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

If you've started using Git Worktrees to juggle multiple branches at once, your file system can quickly become a bit of a maze. You might forget which folder is tracking which feature, or worse, why Git won't let you delete a branch because it's "in use" somewhere you can't find.

git worktree list is your GPS. It tells you exactly how your main repository is linked to various folders on your machine.

How to Merge Branches in Git (Without Creating "Spaghetti" History)

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Merging code used to be the most terrifying part of a developer's week. You would type git merge, hold your breath, and pray you didn't accidentally delete your coworker's entire feature.

Today, modern Git workflows (and platforms like GitHub and GitLab) have completely changed the game. The goal in 2026 isn't just to combine code; it's to maintain a clean, readable, and linear history so that when something breaks 6 months from now, you can actually figure out why.

Here is the modern playbook on how to merge your branches without creating a chaotic "spaghetti" history.

Git fetch vs git fetch origin: whats the difference?

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

When you are typing away in your terminal, git fetch and git fetch origin probably feel exactly the same. In fact, if you only ever work on standard, single-team projects, you might go your entire career without realizing there is a difference at all.

However, Git is highly configurable. The moment you step into open-source development or complex team architectures, that little missing word (origin) suddenly completely changes how Git behaves.

Here is the candid truth about what Git is actually doing behind the scenes.

How to delete origin and local branch in Git

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Deleting a branch is a bit like taking out the trash: if you only do it in the kitchen (locally), the bin outside (remotely) stays full. To truly clean up your project, you need to perform a two-step operation.

Here is how to safely and effectively wipe a branch from existence both on your machine and on the server.

How to Find a Bug with `git bisect` (Binary Search Debugging)

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Finding a bug is like detective work-except the crime scene is your code, and the suspect is one of your last 200 commits. You know the code worked last week, and you know it's broken now, but finding the exact moment it failed can take hours of manual checking.

Enter git bisect. It uses a binary search algorithm to find the offending commit with mathematical efficiency. Instead of checking every commit, it cuts the search area in half every single time.

Difference between git rebase origin/branch vs git rebase origin branch

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

It looks like a tiny typo, but in Git, the difference between a slash and a space is the difference between a simple update and a complete context switch.

If you are staring at your terminal wondering why one works and the other throws an error (or moves you to a different branch entirely), here is the breakdown of the "Invisible Space" mystery.

Use `git worktree` for Hotfixes: A Better Alternative to Stash

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

We have all been there: you are deep in the zone, half-way through building a complex new feature, and your terminal is full of uncommitted changes. Suddenly, you get a message from your team: "Critical bug in production! We need a hotfix right now!"

The traditional response is to use git stash, switch to main, fix the bug, and then try to un-stash your messy feature branch later. But if you have complex dependencies (like node_modules or .venv) or untracked files, stashing can lead to absolute chaos.

This is where git worktree comes in. It is the professional's secret weapon for parallel development.

How to Fix 'fatal: cannot delete branch used by worktree' in Git

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Git is usually pretty good at protecting us from our own mistakes. When you try to delete a branch and get hit with the fatal: cannot delete branch 'xyz' used by worktree at '/path/to/folder' error, Git is essentially acting as a safeguard.

It is telling you: "I can't delete this branch because it is currently checked out and actively being used in another folder on your computer!"

Here is exactly why this happens and how to resolve it safely.