Skip to content

Anddd7/git-fzf

Repository files navigation

git-fzf

standardized your commit message with fzf.

similar like commitizen/cz-cli, but can be used for any git project. also get inspired by bigH/git-fuzzy, inject this command as a git extension.

Installation

zsh

apply the shell

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Anddd7/git-fzf/main/install.sh)"

Usage

g fzf-commit "this is your message"
# or
gfzfc "this is your message"

Customize your prefix

create .commit-template to customize your prefix

(feat)
(docs)
(fix)
(style)
(test)
(chore)

Example: Overwrite & Hierarchy

it support hierarchy, and will overwrite the prefix from bottom to top

home
└── anddd7
    ├── project1
    │   └── .commit-template      # for project1
    ├── project2
    │   └── .commit-template      # for project2
    └── workspace
        ├── .commit-template      # for all sub projects
        ├── oss-project1
        └── oss-project2

Example: Emoji

define your prefix with emoji

🚀feature
💊repair
📑docs
🏂optimize
🍺misc

Example: Frequently used

add your frequently used msg, instead of writing it every time

fix bug
fix misc
refine the docs

Uninstall

zsh

apply the shell

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Anddd7/git-fzf/main/uninstall.sh)"

Others

About

standardized your git commit message with fzf

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages