Configure user name
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git config --global user.name "Your Name"
复制后可按需替换文件名、目录或参数。
git config --global user.email "you@example.com"
复制后可按需替换文件名、目录或参数。
git init
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git status
权限或系统影响较大,执行前请核对目标。
git add [file]
权限或系统影响较大,执行前请核对目标。
git add .
复制后可按需替换文件名、目录或参数。
git commit -m "describe the change"
复制后可按需替换文件名、目录或参数。
git push
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git branch
复制后可按需替换文件名、目录或参数。
git branch -a
复制后可按需替换文件名、目录或参数。
git branch --show-current
复制后可按需替换文件名、目录或参数。
git switch [branchName]
复制后可按需替换文件名、目录或参数。
git switch -c [newBranch]
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git log
复制后可按需替换文件名、目录或参数。
git log --oneline --graph --all
复制后可按需替换文件名、目录或参数。
git show [commitHash]
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git restore [fileName]
复制后可按需替换文件名、目录或参数。
git restore --staged [fileName]
复制后可按需替换文件名、目录或参数。
git commit --amend
复制后可按需替换文件名、目录或参数。
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
11 commands
复制后可按需替换文件名、目录或参数。
git tag [tagName]
复制后可按需替换文件名、目录或参数。
git tag -a v1.0 -m "release 1.0"
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git remote -v
权限或系统影响较大,执行前请核对目标。
git remote add [remoteName] [remoteURL]
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git rebase [branchName]
复制后可按需替换文件名、目录或参数。
git rebase -i HEAD~3
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
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
复制后可按需替换文件名、目录或参数。
git status -sb
复制后可按需替换文件名、目录或参数。
ack [pattern]
复制后可按需替换文件名、目录或参数。
aider [file1.py] [file2.py]
复制后可按需替换文件名、目录或参数。
amp [path/to/file]
复制后可按需替换文件名、目录或参数。
ansible-pull -U [https://github.com/user/repo.git]
复制后可按需替换文件名、目录或参数。
antigen use oh-my-zsh
复制后可按需替换文件名、目录或参数。
argocd app list
复制后可按需替换文件名、目录或参数。
argocd login [argocd.example.com]
复制后可按需替换文件名、目录或参数。
asp checkout [package]
复制后可按需替换文件名、目录或参数。
atom
复制后可按需替换文件名、目录或参数。
aurpublish [package_name]
复制后可按需替换文件名、目录或参数。
aws amplify create-app --name [app_name] --repository [repo_url]
复制后可按需替换文件名、目录或参数。
aws codecommit create-repository --repository-name [my-repo] --repository-description "[Description]"
复制后可按需替换文件名、目录或参数。
az devops configure --defaults organization=[https://dev.azure.com/contoso] project=[ContosoWebApp]
复制后可按需替换文件名、目录或参数。
az repos list --project [MyProject]
复制后可按需替换文件名、目录或参数。
bash-it enable plugin [git]
复制后可按需替换文件名、目录或参数。
basher install [username/repository]
复制后可按需替换文件名、目录或参数。
bat [file.js]
复制后可按需替换文件名、目录或参数。
batcat
复制后可按需替换文件名、目录或参数。
berks install
复制后可按需替换文件名、目录或参数。
bfg --delete-files [secrets.txt] [repo.git]
复制后可按需替换文件名、目录或参数。
bit save
复制后可按需替换文件名、目录或参数。
bk clone [bk://server/repository]
复制后可按需替换文件名、目录或参数。
bower install [jquery]
复制后可按需替换文件名、目录或参数。
branchlet
复制后可按需替换文件名、目录或参数。
brew tap
复制后可按需替换文件名、目录或参数。
brew update
复制后可按需替换文件名、目录或参数。
buf lint [path/to/protos]
复制后可按需替换文件名、目录或参数。
bun patch [package-name]
复制后可按需替换文件名、目录或参数。
bun pm trust [package1] [package2]
复制后可按需替换文件名、目录或参数。
bup init
复制后可按需替换文件名、目录或参数。
cargo install [ripgrep]
复制后可按需替换文件名、目录或参数。
cargo new [project_name]
复制后可按需替换文件名、目录或参数。
cargo vendor
复制后可按需替换文件名、目录或参数。
cargo version
复制后可按需替换文件名、目录或参数。
carthage update
复制后可按需替换文件名、目录或参数。
chezmoi init
复制后可按需替换文件名、目录或参数。
cloc [directory]
复制后可按需替换文件名、目录或参数。
clojure
复制后可按需替换文件名、目录或参数。
cobib
复制后可按需替换文件名、目录或参数。
code .
复制后可按需替换文件名、目录或参数。
code2prompt [path/to/project]
复制后可按需替换文件名、目录或参数。
codecrafters login
复制后可按需替换文件名、目录或参数。
cody auth login --web
复制后可按需替换文件名、目录或参数。
cola
复制后可按需替换文件名、目录或参数。
colorls
复制后可按需替换文件名、目录或参数。
conan install [.]
复制后可按需替换文件名、目录或参数。
concord --version
复制后可按需替换文件名、目录或参数。
cookiecutter [https://github.com/user/template]
复制后可按需替换文件名、目录或参数。
curl -fsSL https://get.coolify.io | bash
涉及管道、覆盖或删除,执行前请先确认路径和参数。
copier copy [gh:user/template] [destination/]
复制后可按需替换文件名、目录或参数。
cpanm [Module::Name]
复制后可按需替换文件名、目录或参数。
ctx init
复制后可按需替换文件名、目录或参数。
daff [file1.csv] [file2.csv]
复制后可按需替换文件名、目录或参数。
dagger init --sdk=[go|python|typescript]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git diff | delta
涉及管道、覆盖或删除,执行前请先确认路径和参数。
devpod up [github.com/user/repo]
复制后可按需替换文件名、目录或参数。
git diff | diff-so-fancy
涉及管道、覆盖或删除,执行前请先确认路径和参数。
diffnav
复制后可按需替换文件名、目录或参数。
diffstat [patch.diff]
复制后可按需替换文件名、目录或参数。
difft [old_file] [new_file]
复制后可按需替换文件名、目录或参数。
difft [file1] [file2]
复制后可按需替换文件名、目录或参数。
docker buildx version
复制后可按需替换文件名、目录或参数。
doctl apps list
复制后可按需替换文件名、目录或参数。
dokku apps:create [app_name]
复制后可按需替换文件名、目录或参数。
dolt add .
权限或系统影响较大,执行前请核对目标。
dolt blame [table_name]
复制后可按需替换文件名、目录或参数。
dolt branch
复制后可按需替换文件名、目录或参数。
dolt checkout [branch_name]
复制后可按需替换文件名、目录或参数。
dolt commit -m "[message]"
复制后可按需替换文件名、目录或参数。
dolt config --global --add user.name "[Your Name]"
权限或系统影响较大,执行前请核对目标。
dolt status
复制后可按需替换文件名、目录或参数。
dolt init
复制后可按需替换文件名、目录或参数。
dotbot -c [install.conf.yaml]
复制后可按需替换文件名、目录或参数。
ls -a
复制后可按需替换文件名、目录或参数。
dotstate init [directory]
复制后可按需替换文件名、目录或参数。
drive init [~/gdrive]
复制后可按需替换文件名、目录或参数。
dstask add [task description]
权限或系统影响较大,执行前请核对目标。
dvc add [data.csv]
权限或系统影响较大,执行前请核对目标。
dvc checkout
复制后可按需替换文件名、目录或参数。
dvc commit
复制后可按需替换文件名、目录或参数。
dvc config [core.remote] [myremote]
复制后可按需替换文件名、目录或参数。
dvc diff
复制后可按需替换文件名、目录或参数。
dvc init
复制后可按需替换文件名、目录或参数。
dvc init
复制后可按需替换文件名、目录或参数。
editor [file.txt]
复制后可按需替换文件名、目录或参数。
eg [command]
复制后可按需替换文件名、目录或参数。
emacsclient [file.txt]
复制后可按需替换文件名、目录或参数。
erdtree [directory]
复制后可按需替换文件名、目录或参数。
sudo etckeeper init
权限或系统影响较大,执行前请核对目标。
exa
复制后可按需替换文件名、目录或参数。
eza --icons
复制后可按需替换文件名、目录或参数。
flux bootstrap github --owner=[username] --repository=[repo] --path=[clusters/my-cluster]
复制后可按需替换文件名、目录或参数。
fluxctl list-workloads
复制后可按需替换文件名、目录或参数。
forge
复制后可按需替换文件名、目录或参数。
forgit log
复制后可按需替换文件名、目录或参数。
fossil commit -m "[message]"
复制后可按需替换文件名、目录或参数。
fossil init [repo.fossil]
复制后可按需替换文件名、目录或参数。
find . -type f | fzf
涉及管道、覆盖或删除,执行前请先确认路径和参数。
gbp import-dsc [path/to/package.dsc]
复制后可按需替换文件名、目录或参数。
gfold
复制后可按需替换文件名、目录或参数。
gh browse
复制后可按需替换文件名、目录或参数。
gh config get [key]
复制后可按需替换文件名、目录或参数。
gh copilot suggest "[how to find large files]"
复制后可按需替换文件名、目录或参数。
gh gist create [file]
复制后可按需替换文件名、目录或参数。
gh gpg-key list
权限或系统影响较大,执行前请核对目标。
gh help mintty
复制后可按需替换文件名、目录或参数。
gh pr create
复制后可按需替换文件名、目录或参数。
gh release list
复制后可按需替换文件名、目录或参数。
gh repo create
复制后可按需替换文件名、目录或参数。
gh ssh-key list
需要网络或远程资源。
gh repo clone [owner]/[repo]
复制后可按需替换文件名、目录或参数。
ghq get [https://github.com/owner/repo]
复制后可按需替换文件名、目录或参数。
git abort
复制后可按需替换文件名、目录或参数。
git absorb
复制后可按需替换文件名、目录或参数。
git add [path/to/file]
权限或系统影响较大,执行前请核对目标。
git agecrypt init
复制后可按需替换文件名、目录或参数。
git alias
复制后可按需替换文件名、目录或参数。
git am [patches.mbox]
复制后可按需替换文件名、目录或参数。
git annex init "[description]"
复制后可按需替换文件名、目录或参数。
git annotate [file]
复制后可按需替换文件名、目录或参数。
git apply [patch.diff]
复制后可按需替换文件名、目录或参数。
git archive-file
复制后可按需替换文件名、目录或参数。
git archive HEAD -o [archive.tar]
复制后可按需替换文件名、目录或参数。
git authors
复制后可按需替换文件名、目录或参数。
git bisect start
复制后可按需替换文件名、目录或参数。
git blame-someone-else "[Author Name] <email@example.com>" [commit]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git blame [file.txt]
复制后可按需替换文件名、目录或参数。
git branch
复制后可按需替换文件名、目录或参数。
git branchless init
复制后可按需替换文件名、目录或参数。
git browse-ci
复制后可按需替换文件名、目录或参数。
git browse
复制后可按需替换文件名、目录或参数。
git brv
复制后可按需替换文件名、目录或参数。
git bug add
复制后可按需替换文件名、目录或参数。
git bugreport
复制后可按需替换文件名、目录或参数。
git bulk -a [git-command]
复制后可按需替换文件名、目录或参数。
git bundle create [repo.bundle] --all
复制后可按需替换文件名、目录或参数。
git cat-file -t [object]
复制后可按需替换文件名、目录或参数。
git changelog
复制后可按需替换文件名、目录或参数。
git check-attr [attribute] [file]
复制后可按需替换文件名、目录或参数。
git check-ignore [file.txt]
复制后可按需替换文件名、目录或参数。
git check-mailmap "[Name] <email@example.com>"
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git check-ref-format [refs/heads/branch]
复制后可按需替换文件名、目录或参数。
git checkout-index -a
复制后可按需替换文件名、目录或参数。
git checkout [branch-name]
复制后可按需替换文件名、目录或参数。
git cherry-pick [commit]
复制后可按需替换文件名、目录或参数。
git cherry [upstream] [branch]
复制后可按需替换文件名、目录或参数。
git clean -n
复制后可按需替换文件名、目录或参数。
git clear-soft
复制后可按需替换文件名、目录或参数。
git clear
复制后可按需替换文件名、目录或参数。
git cliff
复制后可按需替换文件名、目录或参数。
git clone [https://github.com/owner/repo.git]
复制后可按需替换文件名、目录或参数。
git coauthor "[Name]" "[email@example.com]"
复制后可按需替换文件名、目录或参数。
git cola
复制后可按需替换文件名、目录或参数。
seq 1 24 | git column --mode=column --padding=[5]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git commit-graph write
复制后可按需替换文件名、目录或参数。
echo "[message]" | git commit-tree [tree_hash]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git commit -m "[message]"
复制后可按需替换文件名、目录或参数。
git commits-since yesterday
复制后可按需替换文件名、目录或参数。
git config --global user.name "[Name]"
复制后可按需替换文件名、目录或参数。
git continue
复制后可按需替换文件名、目录或参数。
git contrib [author-name]
复制后可按需替换文件名、目录或参数。
git count-objects
复制后可按需替换文件名、目录或参数。
git count
复制后可按需替换文件名、目录或参数。
git cp [source_file] [destination_file]
复制后可按需替换文件名、目录或参数。
git create-branch [branch_name]
复制后可按需替换文件名、目录或参数。
git config credential.helper cache
复制后可按需替换文件名、目录或参数。
git config credential.helper store
复制后可按需替换文件名、目录或参数。
echo "url=https://github.com" | git credential fill
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git-crypt init
复制后可按需替换文件名、目录或参数。
git cvsexportcommit -v -c [commit]
复制后可按需替换文件名、目录或参数。
git daemon --base-path=[/path/to/repos]
复制后可按需替换文件名、目录或参数。
git delete-branch [branch]
复制后可按需替换文件名、目录或参数。
git delete-merged-branches
复制后可按需替换文件名、目录或参数。
git delete-squashed-branches
复制后可按需替换文件名、目录或参数。
git delete-submodule [path/to/submodule]
复制后可按需替换文件名、目录或参数。
git delete-tag [tag_name]
复制后可按需替换文件名、目录或参数。
git delta
复制后可按需替换文件名、目录或参数。
git describe
复制后可按需替换文件名、目录或参数。
git diff-files
复制后可按需替换文件名、目录或参数。
git diff-index HEAD
复制后可按需替换文件名、目录或参数。
git diff-tree [tree1] [tree2]
复制后可按需替换文件名、目录或参数。
git diff
复制后可按需替换文件名、目录或参数。
git difftool [file]
复制后可按需替换文件名、目录或参数。
git effort
复制后可按需替换文件名、目录或参数。
git extras --version
复制后可按需替换文件名、目录或参数。
git fame
复制后可按需替换文件名、目录或参数。
git fast-export --all > [repo.txt]
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git feature [feature_name]
复制后可按需替换文件名、目录或参数。
git fetch
复制后可按需替换文件名、目录或参数。
git filter-branch --tree-filter 'rm -f [file]' HEAD
复制后可按需替换文件名、目录或参数。
git filter-repo --path [file.txt] --invert-paths
复制后可按需替换文件名、目录或参数。
git flow init
复制后可按需替换文件名、目录或参数。
git for-each-ref
复制后可按需替换文件名、目录或参数。
git for-each-repo --config=[maintenance.repo] [fetch]
复制后可按需替换文件名、目录或参数。
git force-clone [url] [directory]
复制后可按需替换文件名、目录或参数。
git fork [https://github.com/owner/repo]
复制后可按需替换文件名、目录或参数。
git format-patch -[n]
复制后可按需替换文件名、目录或参数。
git fresh-branch [branch_name]
复制后可按需替换文件名、目录或参数。
git fsck
复制后可按需替换文件名、目录或参数。
git gc
复制后可按需替换文件名、目录或参数。
git get-tar-commit-id < [archive.tar]
复制后可按需替换文件名、目录或参数。
git gh-pages
复制后可按需替换文件名、目录或参数。
git graft [feature-branch]
复制后可按需替换文件名、目录或参数。
git grep "[pattern]"
复制后可按需替换文件名、目录或参数。
git gui
复制后可按需替换文件名、目录或参数。
git guilt [branch1] [branch2]
复制后可按需替换文件名、目录或参数。
git hash-object [file]
复制后可按需替换文件名、目录或参数。
git help [commit]
复制后可按需替换文件名、目录或参数。
echo '#!/bin/sh' > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git http-push [url] [refs]
复制后可按需替换文件名、目录或参数。
git ignore-io [Python]
复制后可按需替换文件名、目录或参数。
git ignore [pattern]
复制后可按需替换文件名、目录或参数。
git format-patch origin | git imap-send
涉及管道、覆盖或删除,执行前请先确认路径和参数。
git imerge start --name=[merge-name] [branch]
复制后可按需替换文件名、目录或参数。
git info
复制后可按需替换文件名、目录或参数。
git init
复制后可按需替换文件名、目录或参数。
git instaweb
复制后可按需替换文件名、目录或参数。
git rebase -i HEAD~5
复制后可按需替换文件名、目录或参数。
git lfs transfer
复制后可按需替换文件名、目录或参数。
git lfs install
复制后可按需替换文件名、目录或参数。
git local-commits
复制后可按需替换文件名、目录或参数。
git lock [file.psd]
复制后可按需替换文件名、目录或参数。
git locked
复制后可按需替换文件名、目录或参数。
git log
复制后可按需替换文件名、目录或参数。
git ls-files
复制后可按需替换文件名、目录或参数。
git ls-remote [origin]
复制后可按需替换文件名、目录或参数。
git ls-tree HEAD
复制后可按需替换文件名、目录或参数。
git magic
复制后可按需替换文件名、目录或参数。
git mailinfo [msg.txt] [patch.txt] < [email.txt]
复制后可按需替换文件名、目录或参数。
git mailsplit -o [output-dir] [mbox]
复制后可按需替换文件名、目录或参数。
git maintenance start
复制后可按需替换文件名、目录或参数。
git merge-base [branch1] [branch2]
复制后可按需替换文件名、目录或参数。
git merge-file [current] [base] [other]
复制后可按需替换文件名、目录或参数。
git merge-index [merge-program] -a
复制后可按需替换文件名、目录或参数。
git merge-into [target-branch]
复制后可按需替换文件名、目录或参数。
git merge-one-file [base] [ours] [theirs] [path] [mode]
复制后可按需替换文件名、目录或参数。
git merge-repo [repo-url] [branch] [directory]
复制后可按需替换文件名、目录或参数。
git merge-tree [branch1] [branch2]
复制后可按需替换文件名、目录或参数。