git forgit

# forgit 은 fzf 를 이용해 git 요소들을 검색할 수 있는 git 커맨드다.
# https://github.com/wfxr/forgit

# 설치
brew install forgit

# forgit 으로 사용할 수 있는command 확인
git forgit

# tig 에서는 exact 검색만 돼서 다음과 같이 사용했었다.
# glo 로 git log 를 한줄로 보도록 되어 있고
alias glo='git log --topo-order --pretty=format:"$_git_log_oneline_format"'

# rg 로 검색
glo | rg -i "aaa|bbb"

# 또는 fzf 로 검색
glo | fzf
 
# forgit 을 사용하면 fuzzy 검색하여 파일 확인하고 esc 로 다시 검색할 수 있다.
git forgit log

comments:

댓글 쓰기