Git

20 posts

2026

How to Use .env Files to Keep Your API Keys Out of Git

How to use .env files to keep API keys out of Git. Setup for Python, Node.js, and C#, plus what to do if you already committed a secret.

2021

Git - Remove unreachable objects using git prune

How to use git prune to remove unreachable objects from your repository, with git fetch --prune and git gc.

Automatically schedule a git merge using GitHub Actions

How to use GitHub Actions to schedule automatic pull request merges on a specific date.

Git - Compare two commits using git diff

How to use git diff to compare changes between commits, branches, and your working directory.

Git - Initialize a new repository using git init

How to use git init to create a new repository or reinitialize an existing one.

Git - How do I set config values in git?

How to use git config to set your username, email, editor, and other settings at local and global scope.

Git - Who can I ask about this change? Using git blame

How to use git blame to find out who changed each line of a file and when.

Git - What is the difference between rm and git rm?

How to use git rm to remove files from your repository, with --cached, --force, and undo options.

Git - Tagging up commits using Git Tag

How to use git tag to mark specific commits as releases or milestones in your repository.

Git - Temporarily store local changes using Git Stash

How to use git stash to temporarily save uncommitted changes and restore them later.

Git - Updating your repository with Git Fetch

How to use git fetch to download remote changes without merging them into your working branch.

Git - Get up to date with Git Pull

How to use git pull to fetch and merge remote changes into your local branch.

Git - Upload committed changes using Git Push

How to use git push to upload local commits to a remote repository, including force push and tags.

Git - Save changes to your local repository with Git Commit

How to use git commit to save staged changes, write good commit messages, and amend previous commits.

Where do I run Git Commands?

New to Git? Here's where and how to run git commands on Windows, Mac, and Linux.

Git - Stage files with Git Add

How to use git add to stage files for your next commit, including interactive and patch modes.

Git - Grab a repository with Git Clone

How to use git clone to copy a remote repository to your local machine, with common options explained.

Git - Create and delete branches using Git Branch

How to use git branch to create, list, rename, and delete branches in your repository.

Git - Jump between branches using Git Checkout

How to use git checkout to switch branches, restore files, and navigate your commit history.

Whats the difference between Git Status and Git Log?

How to use git status and git log to check your working tree, staged changes, and commit history.