https://github.com/levonium/repos
https://github.com/levonium/repos
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/levonium/repos
- Owner: levonium
- Created: 2020-05-12T17:21:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-24T14:07:59.000Z (over 2 years ago)
- Last Synced: 2025-07-16T23:31:33.124Z (11 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Git status checker
Checks `git status` for all repositories defined in a list and displays the results if there are any local changes left.
This is useful when you work on multiple projects during the day and at the end want to check if all the changes are saved/committed/pushed.
```bash
# clone/copy this `repos` directory (e.g. ~/code)
cp -r repos ~/code
# if it's different than `~/code/repos` adjust it in `config.sh`
REPOSITORIES_DIR=~/code/repos
# create the list file
touch _list
# make 3 files executable
cd ~/code/repos
chmod +x add.sh check.sh list.sh
# include the `_config.sh` file into `.zshrc`
# it'll include the directory in PATH and register 3 aliases
source ~/code/repos/_config.sh
# add a directory/repository to the list
addrepo
# list all repositories
listrepos
# check statuses
checkrepos
```