Skip to main content

3 posts tagged with "cli"

cli tag description

View All Tags

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.