Skip to content

tkolleh/git-commands

Repository files navigation

⚡️ tkolleh's Git Commands starline

Git commands for common tasks with interactive fzf-powered interfaces.

Installation

  1. Clone this repository
gh repo clone tkolleh/git-commands
  1. Make all scripts executable
chmod +x git-commands/git-*
  1. Add the directory to your $PATH (add to ~/.zshrc for persistence)
export PATH="$HOME/path/to/git-commands:$PATH"
  1. Set $FZF_GIT_HOME to your fzf-git.sh installation
export FZF_GIT_HOME="$HOME/path/to/fzf-git.sh"

Dependencies

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

Commands

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.

Aliases

common-git-cmd-aliases.conf contains a collection of useful git aliases.

Installation

  1. Copy the alias file to your local config directory:
cp common-git-cmd-aliases.conf ~/.local/share/git/
  1. Include it in your ~/.gitconfig:
[include]
  path = ~/.local/share/git/common-git-cmd-aliases.conf

References

About

Common git commands

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages