Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/contrib/git-shell-commands/list # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / contrib / git-shell-commands / list` 10 lines ยท 227 bytes Raw Blame History 1 #!/bin/sh 2 3 print_if_bare_repo=' 4 if "$(git --git-dir="$1" rev-parse --is-bare-repository)" = true 5 then 6 printf "%s\n" "${1#./}" 7 fi 8 ' 9 10 find -type d -name "*.git" -exec sh -c "$print_if_bare_repo" -- \{} \; -prune 2>/dev/null