Skip to content

yiman0919/clink-git-completions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clink-git-completions

Git command completions for Clink — the classic Windows cmd.exe command-line editing tool.

Features

  • Command completion: Type git p + Tab → completes to push, 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

Installation

Quick install

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.

Manual install

Copy all .lua files to your Clink scripts directory:

# Default location
%LOCALAPPDATA%\clink\

# Or your custom scripts directory
clink installscripts <target_directory>

Requirements

  • Clink v0.4.3 or newer (tested on v1.x)

Files

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

Supported commands

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

Credits

Based on clink-completions by chrisant996, originally forked from vladimir-kotikov/clink-completions.

License

MIT

About

Git command completions for Clink

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages