Skip to main content

4 posts tagged with "cli"

cli tag description

View All Tags

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.

Git: Discard All Local Changes and Get a Fresh Copy from GitHub

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

A common and reliable way to get a fresh copy from a GitHub repository, while preserving specific local files like .gitignore, is to use a combination of git reset and git clean. This approach ensures your local branch exactly mirrors the remote branch, without leaving behind any untracked or unwanted files.

Discard all local changes and pull the latest version from a GitHub

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

To discard all your local changes and pull the latest version from a GitHub repository, you need to completely reset your local branch to match the remote's state. This process involves a few steps to ensure all uncommitted and committed local changes are removed.

This guide covers the most reliable methods, including situations where you've already made local commits.

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.