Рекурсивный git status

Небольшой однострочник для рекурсивного вызова git status по всем субдиректориям

find ./ -maxdepth 1 -type d -not -path '.*/' -exec sh -c '([ -d {}/.git ] && echo {} status: && cd {} && git status -s && echo)' \;

upd:

Сюда же закину свои алиасы, а то вечно теряются

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias c='clear'

# git aliases
alias rgls="find ./ -maxdepth 1 -type d -not -path '.*/' -exec sh -c '([ -d {}/.git ] && echo {} status: && cd {} && git status -s && echo)' \;"
alias gad='git add'
alias gcm='git commit -m'
alias gp='git push'
alias gls='clear && git status -s .'
alias glsa='clear && git status -s'
alias gck='git checkout'
alias gbr='git branch'
alias gdf='git diff'

 

Комментарии

comments powered by Disqus
Яндекс.Метрика