A command-line tool that shows the status of all Git repositories contained in a directory.
gitls is a utility that helps you quickly check the status of multiple Git repositories in a directory. It's particularly useful when you have many Git repositories cloned locally and want to see their status at a glance.
- Shows the status of all Git repositories in a directory
- Displays current branch information
- Shows remote repository URLs
- Indicates repository status with intuitive symbols:
*- Unstaged changes- Resolution:
git add <files>(to stage) orgit checkout -- <files>(to discard)
- Resolution:
+- Staged changes- Resolution:
git commit -m "message"(to commit) orgit reset HEAD <files>(to unstage)
- Resolution:
%- Untracked files- Resolution:
git add <files>(to track) orgit clean -f(to remove, use with caution)
- Resolution:
$- Stashed changes- Resolution:
git stash apply(to apply) orgit stash drop(to discard)
- Resolution:
<N- Behind remote by N commits- Resolution:
git pull(to update) orgit pull --rebase(to rebase)
- Resolution:
>N- Ahead of remote by N commits- Resolution:
git push(to send changes to remote)
- Resolution:
=- Up-to-date with remote- No action needed
-- Not a git repository- Resolution:
git init(to create a new repository)
- Resolution:
- Can show hidden directories (with -a/--all flag)
- Shows summary of skipped non-repository directories
gitls [OPTIONS] [DIRECTORY]-a, --allShow hidden directories (starting with .)-v, --verboseShow verbose information about execution-u, --unchangedInclude directories with no pending changes (default: only show changed)-h, --helpDisplay help message--versionShow version information
If no directory is specified, gitls will use the current directory.
my-project [main =] git@github.com:user/my-project.git
another-project [feature/new-feature *+%] git@github.com:user/another-project.git
uncommitted-repo [dev <2] git@github.com:user/uncommitted-repo.git
ahead-repo [main >1] git@github.com:user/ahead-repo.git
not-a-repo -
Skipped 3 non-repository dirs
- If no unchanged repositories are found and the
--unchangedoption is used, the script will display:No unchanged repositories
- Bash shell
- Git
Current version: 1.1
BSD 3-Clause License