https://github.com/thekeenant/sync-with-git
Python script to fetch Git repositories.
https://github.com/thekeenant/sync-with-git
command-line-tool git python
Last synced: about 2 months ago
JSON representation
Python script to fetch Git repositories.
- Host: GitHub
- URL: https://github.com/thekeenant/sync-with-git
- Owner: thekeenant
- License: mit
- Created: 2017-06-22T21:38:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T22:01:06.000Z (about 9 years ago)
- Last Synced: 2025-01-02T14:12:02.775Z (over 1 year ago)
- Topics: command-line-tool, git, python
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sync-with-git
With this small Python tool, you can copy the contents of a set of Git repositories into local directories.
## Usage
First modify the `sync.yml` file, then run the script, `./sync.py` with an optional parameter to specify a different YAML configuration file.
## Configuration
The template is self-explanatory!
```yaml
# the git command (may have to specify "/usr/bin/git" for example)
git: git
# the temp directory that sync will use for cloning
tmp: tmp-sync
# set to true to stop subsequent cloning upon failing to clone any repository
abort-on-failure: false
# the list of repositories to clone, in the order provided
repositories:
# this will clone the specified repo with the branch dev into the working directory
- url: git@github.com:thekeenant/repo1.git
branch: master
target: ./
# this will clone the specified repo with the branch dev into ./repo2-copy
- url: git@github.com:thekeenant/repo2.git
branch: dev
target: ./repo2-copy
```