Configure user name
Copy it and replace filenames, paths, or keywords as needed.
git config --global user.name "Your Name"
Linux basics
182 Git Linux command examples grouped into 10 practical sections.
Browse grouped command cards or search directly below.
65 commands
Copy it and replace filenames, paths, or keywords as needed.
git config --global user.name "Your Name"
Copy it and replace filenames, paths, or keywords as needed.
git config --global user.email "you@example.com"
Copy it and replace filenames, paths, or keywords as needed.
git init
Copy it and replace filenames, paths, or keywords as needed.
git clone [url]
Manage Azure DevOps organizations and projects
az devops configure --defaults organization=[https://dev.azure.com/contoso] project=[ContosoWebApp]
Distributed version control system
bk clone [bk://server/repository]
Git-based backup system with deduplication
bup init
cross-platform dotfile manager with templating
chezmoi init
Multi-environment context switcher for DevOps workflows
ctx init
Programmable CI/CD engine that runs pipelines as code
dagger init --sdk=[go|python|typescript]
manage repository and global settings
dolt config --global --add user.name "[Your Name]"
SQL database with Git-like version control
dolt init
Modern dotfile manager with Git integration
dotstate init [directory]
command-line client for Google Drive
drive init [~/gdrive]
manage DVC configuration settings
dvc config [core.remote] [myremote]
Initialize Data Version Control in a repository
dvc init
version control system for machine learning projects
dvc init
version control for /etc directory
sudo etckeeper init
distributed version control with integrated project management
fossil init [repo.fossil]
manage GitHub CLI settings and preferences
gh config get [key]
GitHub official command line interface
gh repo clone [owner]/[repo]
Transparent file-level encryption for Git, powered by age
git agecrypt init
Manage large files in git without storing content in repository
git annex init "[description]"
High-velocity Git workflow tools with smartlog and undo
git branchless init
Clone a remote repository
git clone [https://github.com/owner/repo.git]
Get and set repository or global options
git config --global user.name "[Name]"
Cache credentials in memory temporarily
git config credential.helper cache
Store credentials in plain-text file
git config credential.helper store
52 commands
Copy it and replace filenames, paths, or keywords as needed.
git status
May affect permissions or system state. Check the target first.
git add [file]
May affect permissions or system state. Check the target first.
git add .
Copy it and replace filenames, paths, or keywords as needed.
git commit -m "describe the change"
Copy it and replace filenames, paths, or keywords as needed.
git push
Copy it and replace filenames, paths, or keywords as needed.
git pull
Useful Linux one-liner
git status -sb
Pull and run playbooks from a repository
ansible-pull -U [https://github.com/user/repo.git]
Manage Git repositories hosted on AWS CodeCommit.
aws codecommit create-repository --repository-name [my-repo] --repository-description "[Description]"
stage table changes for commit
dolt add .
record staged database table changes
dolt commit -m "[message]"
show working tree and staging status
dolt status
Git-powered terminal todo manager
dstask add [task description]
track data files with DVC
dvc add [data.csv]
record changes to DVC-tracked files
dvc commit
record changes to repository
fossil commit -m "[message]"
Stage changes in the working directory for next commit
git add [path/to/file]
Rewrite commit authorship (for fixing attribution errors)
git blame-someone-else "[Author Name] <email@example.com>" [commit]
Distributed bug tracker embedded in git
git bug add
Apply changes from existing commits
git cherry-pick [commit]
Display data in columns
seq 1 24 | git column --mode=column --padding=[5]
Write and verify commit graph files
git commit-graph write
Create a commit object from a tree
echo "[message]" | git commit-tree [tree_hash]
Record changes to the repository
git commit -m "[message]"
List commits since a date
git commits-since yesterday
Export a single Git commit to a CVS checkout
git cvsexportcommit -v -c [commit]
Extract commit ID from tar archive
git get-tar-commit-id < [archive.tar]
Display documentation for Git commands
git help [commit]
Scripts triggered at Git workflow points
echo '#!/bin/sh' > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
Push objects over HTTP/WebDAV
git http-push [url] [refs]
48 commands
Copy it and replace filenames, paths, or keywords as needed.
git branch
Copy it and replace filenames, paths, or keywords as needed.
git branch -a
Copy it and replace filenames, paths, or keywords as needed.
git branch --show-current
Copy it and replace filenames, paths, or keywords as needed.
git switch [branchName]
Copy it and replace filenames, paths, or keywords as needed.
git switch -c [newBranch]
Copy it and replace filenames, paths, or keywords as needed.
git merge [branchName]
Retrieve Arch Linux package build files
asp checkout [package]
Interactive Git worktree manager TUI
branchlet
List, create, or delete database branches
dolt branch
switch branches or restore working tables
dolt checkout [branch_name]
restore DVC-tracked files to workspace
dvc checkout
Validate and normalize Git reference names
git check-ref-format [refs/heads/branch]
Copy files from index to working directory
git checkout-index -a
Switch branches or restore working tree files
git checkout [branch-name]
Find commits not merged upstream
git cherry [upstream] [branch]
Create and optionally switch to new branch
git create-branch [branch_name]
Delete both local and remote branches
git delete-branch [branch]
Remove all branches merged into current branch
git delete-merged-branches
Remove branches that were squash-merged
git delete-squashed-branches
Rewrite branch history by applying filters
git filter-branch --tree-filter 'rm -f [file]' HEAD
Create orphan branch with no commit history
git fresh-branch [branch_name]
Merge a branch and delete it immediately
git graft [feature-branch]
Track authorship changes between commits
git guilt [branch1] [branch2]
Incremental bisect-style merging
git imerge start --name=[merge-name] [branch]
Find common ancestor commits for a merge
git merge-base [branch1] [branch2]
Three-way file merging
git merge-file [current] [base] [other]
Run merge program for unmerged files
git merge-index [merge-program] -a
Merge current branch into target
git merge-into [target-branch]
Internal single-file merge helper
git merge-one-file [base] [ours] [theirs] [path] [mode]
Merge repository into subdirectory
git merge-repo [repo-url] [branch] [directory]
35 commands
Copy it and replace filenames, paths, or keywords as needed.
git log
Copy it and replace filenames, paths, or keywords as needed.
git log --oneline --graph --all
Copy it and replace filenames, paths, or keywords as needed.
git show [commitHash]
Copy it and replace filenames, paths, or keywords as needed.
git diff
GitOps continuous delivery CLI for Kubernetes
argocd login [argocd.example.com]
hands-on software engineering challenges platform CLI
codecrafters login
Sourcegraph Cody AI coding assistant CLI
cody auth login --web
syntax-highlighting pager for diffs
git diff | delta
human-readable git diff formatter
git diff | diff-so-fancy
Git diff pager with file tree UI
diffnav
patch file statistics generator
diffstat [patch.diff]
syntax-aware structural diff tool
difft [old_file] [new_file]
Structural diff tool with syntax awareness
difft [file1] [file2]
show the commit, author, and timestamp that last modified each row of a Dolt table
dolt blame [table_name]
show changes in tracked data files
dvc diff
Interactive git commands with fzf
forgit log
Apply patches to files and the index
git apply [patch.diff]
Show what revision and author last modified each line
git blame [file.txt]
Generate formatted changelogs from commit history
git changelog
Compare working tree files to index
git diff-files
Compare tree to working tree or index
git diff-index HEAD
Compare content of tree objects
git diff-tree [tree1] [tree2]
Compare changes using external visual diff tools
git difftool [file]
Compare two commit ranges
git range-diff [base1]..[rev1] [base2]..[rev2]
Record and recover reference movements
git reflog
Summarize git log output grouped by author
git shortlog
Dump pack index file contents
git show-index < [.idx file]
List references in the local repository
git show-ref
10 commands
Copy it and replace filenames, paths, or keywords as needed.
git restore [fileName]
Copy it and replace filenames, paths, or keywords as needed.
git restore --staged [fileName]
Copy it and replace filenames, paths, or keywords as needed.
git commit --amend
Copy it and replace filenames, paths, or keywords as needed.
git revert HEAD
Reset a single file to a specific revision
git reset-file [file]
Reset current HEAD to a specified state
git reset [file]
Restore working tree files or unstage changes
git restore [file]
Remove files from the working tree and index
git rm [file.txt]
Record Terraform runs with git context and timing
tfjournal -- terraform apply
JetBrains JavaScript IDE launcher
webstorm [path/to/project]
4 commands
Copy it and replace filenames, paths, or keywords as needed.
git stash -u
Copy it and replace filenames, paths, or keywords as needed.
git stash list
Copy it and replace filenames, paths, or keywords as needed.
git stash pop
Temporarily save uncommitted changes for later
git stash
11 commands
Copy it and replace filenames, paths, or keywords as needed.
git tag [tagName]
Copy it and replace filenames, paths, or keywords as needed.
git tag -a v1.0 -m "release 1.0"
Copy it and replace filenames, paths, or keywords as needed.
git push --tags
Delete both local and remote tags
git delete-tag [tag_name]
Rename a Git tag locally and on the remote
git rename-tag [old_name] [new_name]
Alias for git add to stage changes
git stage [file]
Create, list, and manage tags
git tag
Verify GPG signatures of tags
git verify-tag [tag]
builds container images from Dockerfiles inside containers or Kubernetes
/kaniko/executor --dockerfile=[Dockerfile] --context=[dir://workspace] --destination=[gcr.io/project/image:tag]
Run linters on git staged files
npx lint-staged
Comprehensive security vulnerability scanner
trivy image [image_name:tag]
11 commands
Copy it and replace filenames, paths, or keywords as needed.
git remote -v
May affect permissions or system state. Check the target first.
git remote add [remoteName] [remoteURL]
Copy it and replace filenames, paths, or keywords as needed.
git fetch [remoteName]
Download objects and refs from remote repositories
git fetch
List remote repository references
git ls-remote [origin]
Rename a Git remote
git rename-remote [old_name] [new_name]
Copy files to a remote via rsync
git rscp [remote] [files]
Copy files to a remote Git repository via scp
git scp [remote] [path/to/file]
Documentation for Git remote helper transport interface
man gitremote-helpers
fetches changes from Git remotes into a Jujutsu repository
jj git fetch
command-line Git information tool that displays repository summary with ASCII
onefetch
5 commands
Copy it and replace filenames, paths, or keywords as needed.
git rebase [branchName]
Copy it and replace filenames, paths, or keywords as needed.
git rebase -i HEAD~3
Copy it and replace filenames, paths, or keywords as needed.
git cherry-pick [commitHash]
Terminal-based sequence editor for git interactive rebase
git rebase -i HEAD~5
Rebase with patch application
git rebase-patch [patch_file]
261 commands
Copy it and replace filenames, paths, or keywords as needed.
git help [command]
grep-like source code search tool for programmers
ack [pattern]
AI pair programming in the terminal
aider [file1.py] [file2.py]
Vi/Vim-inspired terminal text editor
amp [path/to/file]
Zsh plugin manager inspired by Vundle
antigen use oh-my-zsh
Manage Argo CD applications
argocd app list
Hackable text editor built on Electron
atom
Publish packages to the Arch User Repository
aurpublish [package_name]
Build and deploy full-stack web and mobile applications
aws amplify create-app --name [app_name] --repository [repo_url]
Manage Azure DevOps Git repositories and pull requests
az repos list --project [MyProject]
Framework for managing Bash plugins, aliases, and themes.
bash-it enable plugin [git]
Package manager for shell scripts
basher install [username/repository]
Cat clone with syntax highlighting and Git integration
bat [file.js]
Debian/Ubuntu name for the bat file viewer
batcat
Dependency manager for Chef cookbooks
berks install
Remove unwanted data from Git repository history
bfg --delete-files [secrets.txt] [repo.git]
Modern Git CLI wrapper with simplified commands
bit save
Manage front-end web dependencies.
bower install [jquery]
Add third-party repositories to Homebrew
brew tap
Fetch the latest Homebrew and package definitions
brew update
Lint, format, and manage Protocol Buffer files
buf lint [path/to/protos]
Patch installed packages locally
bun patch [package-name]
Manage trusted dependencies in Bun projects
bun pm trust [package1] [package2]
Build and install Rust binary crates
cargo install [ripgrep]
Create a new Cargo package
cargo new [project_name]
git branch --show-current
Copy it and replace filenames, paths, or keywords as needed.
git status -sb
Copy it and replace filenames, paths, or keywords as needed.
ack [pattern]
Copy it and replace filenames, paths, or keywords as needed.
aider [file1.py] [file2.py]
Copy it and replace filenames, paths, or keywords as needed.
amp [path/to/file]
Copy it and replace filenames, paths, or keywords as needed.
ansible-pull -U [https://github.com/user/repo.git]
Copy it and replace filenames, paths, or keywords as needed.
antigen use oh-my-zsh
Copy it and replace filenames, paths, or keywords as needed.
argocd app list
Copy it and replace filenames, paths, or keywords as needed.
argocd login [argocd.example.com]
Copy it and replace filenames, paths, or keywords as needed.
asp checkout [package]
Copy it and replace filenames, paths, or keywords as needed.
atom
Copy it and replace filenames, paths, or keywords as needed.
aurpublish [package_name]
Copy it and replace filenames, paths, or keywords as needed.
aws amplify create-app --name [app_name] --repository [repo_url]
Copy it and replace filenames, paths, or keywords as needed.
aws codecommit create-repository --repository-name [my-repo] --repository-description "[Description]"
Copy it and replace filenames, paths, or keywords as needed.
az devops configure --defaults organization=[https://dev.azure.com/contoso] project=[ContosoWebApp]
Copy it and replace filenames, paths, or keywords as needed.
az repos list --project [MyProject]
Copy it and replace filenames, paths, or keywords as needed.
bash-it enable plugin [git]
Copy it and replace filenames, paths, or keywords as needed.
basher install [username/repository]
Copy it and replace filenames, paths, or keywords as needed.
bat [file.js]
Copy it and replace filenames, paths, or keywords as needed.
batcat
Copy it and replace filenames, paths, or keywords as needed.
berks install
Copy it and replace filenames, paths, or keywords as needed.
bfg --delete-files [secrets.txt] [repo.git]
Copy it and replace filenames, paths, or keywords as needed.
bit save
Copy it and replace filenames, paths, or keywords as needed.
bk clone [bk://server/repository]
Copy it and replace filenames, paths, or keywords as needed.
bower install [jquery]
Copy it and replace filenames, paths, or keywords as needed.
branchlet
Copy it and replace filenames, paths, or keywords as needed.
brew tap
Copy it and replace filenames, paths, or keywords as needed.
brew update
Copy it and replace filenames, paths, or keywords as needed.
buf lint [path/to/protos]
Copy it and replace filenames, paths, or keywords as needed.
bun patch [package-name]
Copy it and replace filenames, paths, or keywords as needed.
bun pm trust [package1] [package2]
Copy it and replace filenames, paths, or keywords as needed.
bup init
Copy it and replace filenames, paths, or keywords as needed.
cargo install [ripgrep]
Copy it and replace filenames, paths, or keywords as needed.
cargo new [project_name]
Copy it and replace filenames, paths, or keywords as needed.
cargo vendor
Copy it and replace filenames, paths, or keywords as needed.
cargo version
Copy it and replace filenames, paths, or keywords as needed.
carthage update
Copy it and replace filenames, paths, or keywords as needed.
chezmoi init
Copy it and replace filenames, paths, or keywords as needed.
cloc [directory]
Copy it and replace filenames, paths, or keywords as needed.
clojure
Copy it and replace filenames, paths, or keywords as needed.
cobib
Copy it and replace filenames, paths, or keywords as needed.
code .
Copy it and replace filenames, paths, or keywords as needed.
code2prompt [path/to/project]
Copy it and replace filenames, paths, or keywords as needed.
codecrafters login
Copy it and replace filenames, paths, or keywords as needed.
cody auth login --web
Copy it and replace filenames, paths, or keywords as needed.
cola
Copy it and replace filenames, paths, or keywords as needed.
colorls
Copy it and replace filenames, paths, or keywords as needed.
conan install [.]
Copy it and replace filenames, paths, or keywords as needed.
concord --version
Copy it and replace filenames, paths, or keywords as needed.
cookiecutter [https://github.com/user/template]
Copy it and replace filenames, paths, or keywords as needed.
curl -fsSL https://get.coolify.io | bash
Uses pipes, overwrite, or deletion. Check paths and options first.
copier copy [gh:user/template] [destination/]
Copy it and replace filenames, paths, or keywords as needed.
cpanm [Module::Name]
Copy it and replace filenames, paths, or keywords as needed.
ctx init
Copy it and replace filenames, paths, or keywords as needed.
daff [file1.csv] [file2.csv]
Copy it and replace filenames, paths, or keywords as needed.
dagger init --sdk=[go|python|typescript]
Uses pipes, overwrite, or deletion. Check paths and options first.
git diff | delta
Uses pipes, overwrite, or deletion. Check paths and options first.
devpod up [github.com/user/repo]
Copy it and replace filenames, paths, or keywords as needed.
git diff | diff-so-fancy
Uses pipes, overwrite, or deletion. Check paths and options first.
diffnav
Copy it and replace filenames, paths, or keywords as needed.
diffstat [patch.diff]
Copy it and replace filenames, paths, or keywords as needed.
difft [old_file] [new_file]
Copy it and replace filenames, paths, or keywords as needed.
difft [file1] [file2]
Copy it and replace filenames, paths, or keywords as needed.
docker buildx version
Copy it and replace filenames, paths, or keywords as needed.
doctl apps list
Copy it and replace filenames, paths, or keywords as needed.
dokku apps:create [app_name]
Copy it and replace filenames, paths, or keywords as needed.
dolt add .
May affect permissions or system state. Check the target first.
dolt blame [table_name]
Copy it and replace filenames, paths, or keywords as needed.
dolt branch
Copy it and replace filenames, paths, or keywords as needed.
dolt checkout [branch_name]
Copy it and replace filenames, paths, or keywords as needed.
dolt commit -m "[message]"
Copy it and replace filenames, paths, or keywords as needed.
dolt config --global --add user.name "[Your Name]"
May affect permissions or system state. Check the target first.
dolt status
Copy it and replace filenames, paths, or keywords as needed.
dolt init
Copy it and replace filenames, paths, or keywords as needed.
dotbot -c [install.conf.yaml]
Copy it and replace filenames, paths, or keywords as needed.
ls -a
Copy it and replace filenames, paths, or keywords as needed.
dotstate init [directory]
Copy it and replace filenames, paths, or keywords as needed.
drive init [~/gdrive]
Copy it and replace filenames, paths, or keywords as needed.
dstask add [task description]
May affect permissions or system state. Check the target first.
dvc add [data.csv]
May affect permissions or system state. Check the target first.
dvc checkout
Copy it and replace filenames, paths, or keywords as needed.
dvc commit
Copy it and replace filenames, paths, or keywords as needed.
dvc config [core.remote] [myremote]
Copy it and replace filenames, paths, or keywords as needed.
dvc diff
Copy it and replace filenames, paths, or keywords as needed.
dvc init
Copy it and replace filenames, paths, or keywords as needed.
dvc init
Copy it and replace filenames, paths, or keywords as needed.
editor [file.txt]
Copy it and replace filenames, paths, or keywords as needed.
eg [command]
Copy it and replace filenames, paths, or keywords as needed.
emacsclient [file.txt]
Copy it and replace filenames, paths, or keywords as needed.
erdtree [directory]
Copy it and replace filenames, paths, or keywords as needed.
sudo etckeeper init
May affect permissions or system state. Check the target first.
exa
Copy it and replace filenames, paths, or keywords as needed.
eza --icons
Copy it and replace filenames, paths, or keywords as needed.
flux bootstrap github --owner=[username] --repository=[repo] --path=[clusters/my-cluster]
Copy it and replace filenames, paths, or keywords as needed.
fluxctl list-workloads
Copy it and replace filenames, paths, or keywords as needed.
forge
Copy it and replace filenames, paths, or keywords as needed.
forgit log
Copy it and replace filenames, paths, or keywords as needed.
fossil commit -m "[message]"
Copy it and replace filenames, paths, or keywords as needed.
fossil init [repo.fossil]
Copy it and replace filenames, paths, or keywords as needed.
find . -type f | fzf
Uses pipes, overwrite, or deletion. Check paths and options first.
gbp import-dsc [path/to/package.dsc]
Copy it and replace filenames, paths, or keywords as needed.
gfold
Copy it and replace filenames, paths, or keywords as needed.
gh browse
Copy it and replace filenames, paths, or keywords as needed.
gh config get [key]
Copy it and replace filenames, paths, or keywords as needed.
gh copilot suggest "[how to find large files]"
Copy it and replace filenames, paths, or keywords as needed.
gh gist create [file]
Copy it and replace filenames, paths, or keywords as needed.
gh gpg-key list
May affect permissions or system state. Check the target first.
gh help mintty
Copy it and replace filenames, paths, or keywords as needed.
gh pr create
Copy it and replace filenames, paths, or keywords as needed.
gh release list
Copy it and replace filenames, paths, or keywords as needed.
gh repo create
Copy it and replace filenames, paths, or keywords as needed.
gh ssh-key list
Requires network or a remote resource.
gh repo clone [owner]/[repo]
Copy it and replace filenames, paths, or keywords as needed.
ghq get [https://github.com/owner/repo]
Copy it and replace filenames, paths, or keywords as needed.
git abort
Copy it and replace filenames, paths, or keywords as needed.
git absorb
Copy it and replace filenames, paths, or keywords as needed.
git add [path/to/file]
May affect permissions or system state. Check the target first.
git agecrypt init
Copy it and replace filenames, paths, or keywords as needed.
git alias
Copy it and replace filenames, paths, or keywords as needed.
git am [patches.mbox]
Copy it and replace filenames, paths, or keywords as needed.
git annex init "[description]"
Copy it and replace filenames, paths, or keywords as needed.
git annotate [file]
Copy it and replace filenames, paths, or keywords as needed.
git apply [patch.diff]
Copy it and replace filenames, paths, or keywords as needed.
git archive-file
Copy it and replace filenames, paths, or keywords as needed.
git archive HEAD -o [archive.tar]
Copy it and replace filenames, paths, or keywords as needed.
git authors
Copy it and replace filenames, paths, or keywords as needed.
git bisect start
Copy it and replace filenames, paths, or keywords as needed.
git blame-someone-else "[Author Name] <email@example.com>" [commit]
Uses pipes, overwrite, or deletion. Check paths and options first.
git blame [file.txt]
Copy it and replace filenames, paths, or keywords as needed.
git branch
Copy it and replace filenames, paths, or keywords as needed.
git branchless init
Copy it and replace filenames, paths, or keywords as needed.
git browse-ci
Copy it and replace filenames, paths, or keywords as needed.
git browse
Copy it and replace filenames, paths, or keywords as needed.
git brv
Copy it and replace filenames, paths, or keywords as needed.
git bug add
Copy it and replace filenames, paths, or keywords as needed.
git bugreport
Copy it and replace filenames, paths, or keywords as needed.
git bulk -a [git-command]
Copy it and replace filenames, paths, or keywords as needed.
git bundle create [repo.bundle] --all
Copy it and replace filenames, paths, or keywords as needed.
git cat-file -t [object]
Copy it and replace filenames, paths, or keywords as needed.
git changelog
Copy it and replace filenames, paths, or keywords as needed.
git check-attr [attribute] [file]
Copy it and replace filenames, paths, or keywords as needed.
git check-ignore [file.txt]
Copy it and replace filenames, paths, or keywords as needed.
git check-mailmap "[Name] <email@example.com>"
Uses pipes, overwrite, or deletion. Check paths and options first.
git check-ref-format [refs/heads/branch]
Copy it and replace filenames, paths, or keywords as needed.
git checkout-index -a
Copy it and replace filenames, paths, or keywords as needed.
git checkout [branch-name]
Copy it and replace filenames, paths, or keywords as needed.
git cherry-pick [commit]
Copy it and replace filenames, paths, or keywords as needed.
git cherry [upstream] [branch]
Copy it and replace filenames, paths, or keywords as needed.
git clean -n
Copy it and replace filenames, paths, or keywords as needed.
git clear-soft
Copy it and replace filenames, paths, or keywords as needed.
git clear
Copy it and replace filenames, paths, or keywords as needed.
git cliff
Copy it and replace filenames, paths, or keywords as needed.
git clone [https://github.com/owner/repo.git]
Copy it and replace filenames, paths, or keywords as needed.
git coauthor "[Name]" "[email@example.com]"
Copy it and replace filenames, paths, or keywords as needed.
git cola
Copy it and replace filenames, paths, or keywords as needed.
seq 1 24 | git column --mode=column --padding=[5]
Uses pipes, overwrite, or deletion. Check paths and options first.
git commit-graph write
Copy it and replace filenames, paths, or keywords as needed.
echo "[message]" | git commit-tree [tree_hash]
Uses pipes, overwrite, or deletion. Check paths and options first.
git commit -m "[message]"
Copy it and replace filenames, paths, or keywords as needed.
git commits-since yesterday
Copy it and replace filenames, paths, or keywords as needed.
git config --global user.name "[Name]"
Copy it and replace filenames, paths, or keywords as needed.
git continue
Copy it and replace filenames, paths, or keywords as needed.
git contrib [author-name]
Copy it and replace filenames, paths, or keywords as needed.
git count-objects
Copy it and replace filenames, paths, or keywords as needed.
git count
Copy it and replace filenames, paths, or keywords as needed.
git cp [source_file] [destination_file]
Copy it and replace filenames, paths, or keywords as needed.
git create-branch [branch_name]
Copy it and replace filenames, paths, or keywords as needed.
git config credential.helper cache
Copy it and replace filenames, paths, or keywords as needed.
git config credential.helper store
Copy it and replace filenames, paths, or keywords as needed.
echo "url=https://github.com" | git credential fill
Uses pipes, overwrite, or deletion. Check paths and options first.
git-crypt init
Copy it and replace filenames, paths, or keywords as needed.
git cvsexportcommit -v -c [commit]
Copy it and replace filenames, paths, or keywords as needed.
git daemon --base-path=[/path/to/repos]
Copy it and replace filenames, paths, or keywords as needed.
git delete-branch [branch]
Copy it and replace filenames, paths, or keywords as needed.
git delete-merged-branches
Copy it and replace filenames, paths, or keywords as needed.
git delete-squashed-branches
Copy it and replace filenames, paths, or keywords as needed.
git delete-submodule [path/to/submodule]
Copy it and replace filenames, paths, or keywords as needed.
git delete-tag [tag_name]
Copy it and replace filenames, paths, or keywords as needed.
git delta
Copy it and replace filenames, paths, or keywords as needed.
git describe
Copy it and replace filenames, paths, or keywords as needed.
git diff-files
Copy it and replace filenames, paths, or keywords as needed.
git diff-index HEAD
Copy it and replace filenames, paths, or keywords as needed.
git diff-tree [tree1] [tree2]
Copy it and replace filenames, paths, or keywords as needed.
git diff
Copy it and replace filenames, paths, or keywords as needed.
git difftool [file]
Copy it and replace filenames, paths, or keywords as needed.
git effort
Copy it and replace filenames, paths, or keywords as needed.
git extras --version
Copy it and replace filenames, paths, or keywords as needed.
git fame
Copy it and replace filenames, paths, or keywords as needed.
git fast-export --all > [repo.txt]
Uses pipes, overwrite, or deletion. Check paths and options first.
git feature [feature_name]
Copy it and replace filenames, paths, or keywords as needed.
git fetch
Copy it and replace filenames, paths, or keywords as needed.
git filter-branch --tree-filter 'rm -f [file]' HEAD
Copy it and replace filenames, paths, or keywords as needed.
git filter-repo --path [file.txt] --invert-paths
Copy it and replace filenames, paths, or keywords as needed.
git flow init
Copy it and replace filenames, paths, or keywords as needed.
git for-each-ref
Copy it and replace filenames, paths, or keywords as needed.
git for-each-repo --config=[maintenance.repo] [fetch]
Copy it and replace filenames, paths, or keywords as needed.
git force-clone [url] [directory]
Copy it and replace filenames, paths, or keywords as needed.
git fork [https://github.com/owner/repo]
Copy it and replace filenames, paths, or keywords as needed.
git format-patch -[n]
Copy it and replace filenames, paths, or keywords as needed.
git fresh-branch [branch_name]
Copy it and replace filenames, paths, or keywords as needed.
git fsck
Copy it and replace filenames, paths, or keywords as needed.
git gc
Copy it and replace filenames, paths, or keywords as needed.
git get-tar-commit-id < [archive.tar]
Copy it and replace filenames, paths, or keywords as needed.
git gh-pages
Copy it and replace filenames, paths, or keywords as needed.
git graft [feature-branch]
Copy it and replace filenames, paths, or keywords as needed.
git grep "[pattern]"
Copy it and replace filenames, paths, or keywords as needed.
git gui
Copy it and replace filenames, paths, or keywords as needed.
git guilt [branch1] [branch2]
Copy it and replace filenames, paths, or keywords as needed.
git hash-object [file]
Copy it and replace filenames, paths, or keywords as needed.
git help [commit]
Copy it and replace filenames, paths, or keywords as needed.
echo '#!/bin/sh' > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
Uses pipes, overwrite, or deletion. Check paths and options first.
git http-push [url] [refs]
Copy it and replace filenames, paths, or keywords as needed.
git ignore-io [Python]
Copy it and replace filenames, paths, or keywords as needed.
git ignore [pattern]
Copy it and replace filenames, paths, or keywords as needed.
git format-patch origin | git imap-send
Uses pipes, overwrite, or deletion. Check paths and options first.
git imerge start --name=[merge-name] [branch]
Copy it and replace filenames, paths, or keywords as needed.
git info
Copy it and replace filenames, paths, or keywords as needed.
git init
Copy it and replace filenames, paths, or keywords as needed.
git instaweb
Copy it and replace filenames, paths, or keywords as needed.
git rebase -i HEAD~5
Copy it and replace filenames, paths, or keywords as needed.
git lfs transfer
Copy it and replace filenames, paths, or keywords as needed.
git lfs install
Copy it and replace filenames, paths, or keywords as needed.
git local-commits
Copy it and replace filenames, paths, or keywords as needed.
git lock [file.psd]
Copy it and replace filenames, paths, or keywords as needed.
git locked
Copy it and replace filenames, paths, or keywords as needed.
git log
Copy it and replace filenames, paths, or keywords as needed.
git ls-files
Copy it and replace filenames, paths, or keywords as needed.
git ls-remote [origin]
Copy it and replace filenames, paths, or keywords as needed.
git ls-tree HEAD
Copy it and replace filenames, paths, or keywords as needed.
git magic
Copy it and replace filenames, paths, or keywords as needed.
git mailinfo [msg.txt] [patch.txt] < [email.txt]
Copy it and replace filenames, paths, or keywords as needed.
git mailsplit -o [output-dir] [mbox]
Copy it and replace filenames, paths, or keywords as needed.
git maintenance start
Copy it and replace filenames, paths, or keywords as needed.
git merge-base [branch1] [branch2]
Copy it and replace filenames, paths, or keywords as needed.
git merge-file [current] [base] [other]
Copy it and replace filenames, paths, or keywords as needed.
git merge-index [merge-program] -a
Copy it and replace filenames, paths, or keywords as needed.
git merge-into [target-branch]
Copy it and replace filenames, paths, or keywords as needed.
git merge-one-file [base] [ours] [theirs] [path] [mode]
Copy it and replace filenames, paths, or keywords as needed.
git merge-repo [repo-url] [branch] [directory]
Copy it and replace filenames, paths, or keywords as needed.
git merge-tree [branch1] [branch2]
Copy it and replace filenames, paths, or keywords as needed.