A script to list status of all repositories located in subdirectories.
git find-repos [ADDIONAL_GIT_STATUS_OPTS]
git-find-repos [ADDIONAL_GIT_STATUS_OPTS]
Option | Description |
---|---|
Addional git-status options | (optional) See git-status Dokumentation |
-u[UNTRACKED_FILES_MODE] |
(optional) E.g. untracked files mode:no - Show no untracked files (default)normal - Shows untracked files and directoriesall - Also shows individual files in untracked directories. |
git find-repos -uall
List all untracked files in all repositories.
The command can be used with git2. Just run the following command to find all git2 based repositories:
git2 find-repos [ADDIONAL_GIT_STATUS_OPTS]
The script git-find-repos
uses a helper script to display the status of a repository. This script can be used individually.
git extended-status [ADDIONAL_GIT_STATUS_OPTS]
git-extended-status [ADDIONAL_GIT_STATUS_OPTS]
Options: see Usage: git-find-repos
Changed default untracked files mode to: Show no untracked files.
git-find-repos fetches from remote repositories. See this article on how to speed up git ssh connections. I added the following files to my .ssh/config
file:
Host github.com
User git
ControlMaster auto
ControlPath ~/.ssh/s/m-%r@%h:%p
ControlPersist 120s
Host gitlab.*
ControlMaster auto
ControlPath ~/.ssh/s/m-%r@%h:%p
ControlPersist 120s