My collection of useful custom git commands.
- Pull the repo.
- Make sure the commands files are executable.
- Add pulled repo dirpath to the $PATH.
Syncs up all local branches of a Git repo to track the remote counterparts and pull the latest changes.
- Navigate into the Git repository.
git sync-all
Syncs up all local branches of all Git repos within the parent directory to track the remote counterparts and pull the latest changes.
- Navigate into the directory, containing multiple Git repositories. Only first-level git repos will be affected. The script will still run successfully even if not only Git repositories exist in the directory.
git dir-sync-all