https://github.com/dmfed/git-lazy-pull
Script for pulling updates from git repositories
https://github.com/dmfed/git-lazy-pull
Last synced: about 1 year ago
JSON representation
Script for pulling updates from git repositories
- Host: GitHub
- URL: https://github.com/dmfed/git-lazy-pull
- Owner: dmfed
- License: mit
- Created: 2020-08-19T22:37:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-30T01:07:58.000Z (over 5 years ago)
- Last Synced: 2025-03-28T14:44:58.292Z (about 1 year ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git lazy pull
Script for pulling updates from git repositories.
Given a target directory the program walks its subdirectories recursively up to specified depth and searches for **.git** subdirs in each of directories it visits.
The script then does **git pull** in each of found directories (NOTE: including the specified target directory) and reports the result for each (_ok_ if **git pull** ran smoothly or _failed_ if exit code after running **git** was different from 0).
You'll need to **chmod +x git-lazy-pull.py** to run directly from terminal.
See **git-lazy-pull.py --help** for command-line options.
Examples:
**git-lazy-pull.py ~/mystuff** checks if there is a git repo in **~/mystuff** and does **git pull** in that directory.
**git-lazy-pull.py ~/projects -d 1 -v** will search for git repository in **~/projects** and all of its subdirectories and then try to pull updates in each providing verbose output.
If you want the script to write result to a file use **git-lazy-pull.py -l**. By default the log is written to **$HOME/.git_lazy_pull**