Git command completions for Clink — the classic Windows cmd.exe command-line editing tool.
- Command completion: Type
git p+ Tab → completes topush,pull, etc. - Branch completion:
git checkout+ Tab → lists local and remote branches - Flag completion:
git commit --+ Tab → shows all flags like--amend,--all, etc. - Stash completion:
git stash pop+ Tab → lists stashes - Remote completion:
git push+ Tab → lists remotes - Alias support: Recognizes your git aliases
https://github.com/yiman0919/clink-git-completions.git
clink installscripts "path\to\clink-git-completions"Restart cmd.exe or run clink inject to reload scripts.
Copy all .lua files to your Clink scripts directory:
# Default location
%LOCALAPPDATA%\clink\
# Or your custom scripts directory
clink installscripts <target_directory>- Clink v0.4.3 or newer (tested on v1.x)
clink-git-completions/
├── !init.lua # Bootstraps module loading
├── git.lua # Main git completion script (2441 lines)
├── modules/
│ ├── arghelper.lua # Argument parser helpers
│ ├── clink_version.lua # Clink version detection
│ ├── color.lua # Terminal color utilities
│ ├── funclib.lua # Functional programming helpers
│ ├── gitutil.lua # Git directory resolution
│ ├── matchers.lua # File/directory match generators
│ ├── path.lua # Path manipulation utilities
│ └── tables.lua # Table manipulation wrappers
├── LICENSE
└── README.md
| Command | Completion |
|---|---|
add |
Modified/untracked files |
blame |
File paths |
branch |
Branch names, flags |
checkout |
Branches, files, remote branches |
cherry-pick |
Commits from history |
clone |
URLs, flags |
commit |
Flags, file status |
config |
Config keys |
diff |
Branches, files |
fetch |
Remotes, flags |
help |
All git commands |
log |
Flags, formats |
merge |
Branches, strategies |
pull |
Remotes, flags |
push |
Remotes, branch specs |
rebase |
Branches, flags |
remote |
Remote management |
reset |
Branches |
restore |
Files |
stash |
Stash entries |
status |
Flags |
switch |
Branches |
tag |
Tags, flags |
worktree |
Worktree management |
Based on clink-completions by chrisant996, originally forked from vladimir-kotikov/clink-completions.
MIT