Skip to main content

Undo git rebase

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

How to Undo a Git Rebase

Undoing a git rebase is a common task, especially if you've made a mistake or the rebase process introduced unexpected issues. The method you use depends on the state of your repository and whether you've pushed the changes to a remote repository.

Git rebase vs. git merge

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

Is rebase better than merge?

Neither rebase nor merge is inherently "better"; they are different tools used for different purposes in Git. The choice between them depends on your workflow, your team's preferences, and whether you want a clean, linear history or an accurate, chronological record of events (3).

Rebasing a local branch onto a remote branch

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

Rebasing a local branch onto a remote branch is a common workflow for keeping your feature branch up-to-date with the main development branch (like main or master) and maintaining a clean, linear commit history.

The process involves a few key steps: fetching the latest changes, checking out your local branch, performing the rebase, handling conflicts, and then force-pushing your changes if the branch was already shared.

Does git rebase affect other branches?

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

Does git rebase affect other branches?

Yes, git rebase can affect other branches, but only if you rebase a branch that other developers have already pulled and started working from. Rebasing a local, unshared branch has no impact on other branches in the repository.

The key to understanding this lies in how rebase works. It rewrites the commit history of a branch by moving its commits to a new base. When you run git rebase, you're essentially creating a new set of commits that replace the original ones.

How to install supabase cli

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

You can install the Supabase CLI using a variety of package managers, including npm, Homebrew, and Scoop, depending on your operating system. The CLI is a powerful tool that allows you to manage database migrations, develop locally, and deploy your project.

Supabase self host

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

Supabase is a Backend-as-a-Service (BaaS) platform that is almost entirely open source, which provides flexibility for developers. While their hosted service is what most people use, you have the freedom to self-host the entire stack. This open-source nature is a key differentiator when comparing it to other solutions like a custom stack with Hasura.

Python's @property vs. @classmethod - A No-Nonsense Guide

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

When you're diving into Python's Object-Oriented Programming (OOP) features, decorators like @property and @classmethod pop up all the time. They might seem similar at first glance, but they serve fundamentally different purposes. Getting them straight is key to writing clean, Pythonic code.

Let's cut through the noise and get straight to what they do and when you should use them.

Managing database queries in Django applications and where save the queries

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

As a Django app grows, managing database queries effectively is crucial for maintainability, performance, and testability. Storing them haphazardly is a recipe for disaster. The best place to store your queries is on custom Model Managers and QuerySets. This approach keeps your logic organized, reusable, and closely tied to the data it operates on. Here are the main variants for storing your queries, from the least recommended to the best practice.

Vercel vs GitHub pages comparison for project maker

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

What is better Vercel or GitHub pages in terms of customization and settings

If you're at a point where you want to build a site that goes beyond just a portfolio or a blog-something you might monetize, track analytics on, add dynamic features to, or even scale up into something bigger-it’s important to choose your hosting platform wisely. GitHub Pages and Vercel are both wildly popular options, but they offer fundamentally different experiences once you want to do more than just put HTML online.