Git commands for common tasks with interactive fzf-powered interfaces.
- Clone this repository
gh repo clone tkolleh/git-commands- Make all scripts executable
chmod +x git-commands/git-*- Add the directory to your
$PATH(add to~/.zshrcfor persistence)
export PATH="$HOME/path/to/git-commands:$PATH"- Set
$FZF_GIT_HOMEto your fzf-git.sh installation
export FZF_GIT_HOME="$HOME/path/to/fzf-git.sh"| Tool | Purpose | Install |
|---|---|---|
| fzf | Fuzzy finder for interactive selection | brew install fzf |
| fzf-git.sh | Git+fzf integration (required) | Clone and set $FZF_GIT_HOME |
| gum | Interactive prompts for commit messages | brew install gum |
| gh | GitHub CLI | brew install gh |
| Command | Description |
|---|---|
git aliases |
Interactive alias viewer with fzf |
git branches |
Browse and select branches with fzf |
git brief |
Enhanced git status with diff stats per file |
git comm |
Interactive conventional commit message generator |
git commits |
Browse commit history with fzf |
git files |
Browse tracked files with fzf |
git remotes |
Browse remotes with fzf |
git stashes |
Browse stashes with fzf |
git tags |
Browse tags with fzf |
git worktrees |
Browse and switch worktrees with fzf |
Use -h or --help with any command for detailed usage information.
common-git-cmd-aliases.conf contains a collection of useful git aliases.
- Copy the alias file to your local config directory:
cp common-git-cmd-aliases.conf ~/.local/share/git/- Include it in your
~/.gitconfig:
[include]
path = ~/.local/share/git/common-git-cmd-aliases.conf- Inspired by ttscoff/git-commands