Git
20 posts
2026
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
How to use git prune to remove unreachable objects from your repository, with git fetch --prune and git gc.
How to use GitHub Actions to schedule automatic pull request merges on a specific date.
How to use git diff to compare changes between commits, branches, and your working directory.
How to use git init to create a new repository or reinitialize an existing one.
How to use git config to set your username, email, editor, and other settings at local and global scope.
How to use git blame to find out who changed each line of a file and when.
How to use git rm to remove files from your repository, with --cached, --force, and undo options.
How to use git tag to mark specific commits as releases or milestones in your repository.
How to use git stash to temporarily save uncommitted changes and restore them later.
How to use git fetch to download remote changes without merging them into your working branch.
How to use git pull to fetch and merge remote changes into your local branch.
How to use git push to upload local commits to a remote repository, including force push and tags.
How to use git commit to save staged changes, write good commit messages, and amend previous commits.
New to Git? Here's where and how to run git commands on Windows, Mac, and Linux.
How to use git add to stage files for your next commit, including interactive and patch modes.
How to use git clone to copy a remote repository to your local machine, with common options explained.
How to use git branch to create, list, rename, and delete branches in your repository.
How to use git checkout to switch branches, restore files, and navigate your commit history.
How to use git status and git log to check your working tree, staged changes, and commit history.