https://github.com/sergk/git-repo
gitrepo provides a CLI tool and a Python API wrapper for interacting with git repositories
https://github.com/sergk/git-repo
git python sync synchronization
Last synced: about 1 year ago
JSON representation
gitrepo provides a CLI tool and a Python API wrapper for interacting with git repositories
- Host: GitHub
- URL: https://github.com/sergk/git-repo
- Owner: SergK
- License: apache-2.0
- Created: 2016-06-24T13:18:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T10:11:20.000Z (over 7 years ago)
- Last Synced: 2025-03-27T15:52:39.167Z (over 1 year ago)
- Topics: git, python, sync, synchronization
- Language: Python
- Homepage:
- Size: 54.7 KB
- Stars: 1
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=======
gitrepo
=======
gitrepo provides a CLI tool and a Python API wrapper for interacting with git repositories
Usage
-----
**gitrepo [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug]**
The utility for work with git projects.
optional arguments:
--version show program's version number and exit
-v, --verbose Increase verbosity of output. Can be repeated.
-q, --quiet Suppress output except warnings and errors.
--log-file LOG_FILE Specify a file to log output. Disabled by default.
-h, --help Show help message and exit.
--debug Show tracebacks on errors.
Commands:
:complete: print bash completion command
:help: print detailed help for another command
:sync: Sync the projects.
'gitrepo sync' example
----------------------
**gitrepo sync [-h] [-f] [-p PROJECT [PROJECT ...]] [-t NUM_THREADS] [--junit-xml [XML_FILE]] file**
Sync the projects.
positional arguments:
file - Path to projects mapping file in YAML format (see format bellow)
.. code-block:: yaml
- project: kubernetes
src-repo: https://github.com/kubernetes/kubernetes
dst-repo: ssh://admin@127.0.0.1:29418/kubernetes/kubernetes
branches:
- "*"
optional arguments:
-h, --help Show help message and exit
-f, --force Force update remote repository without any checks
-p, --project Project(s) to sync
-t, --num-thread Number of worker threads (1 by default)
--junit-xml Create sync report in JUnit XML format (can be used in Jenkins)
ToDo
----
* add additional commands;
* add ability to customise connection parameters;
* add more unit tests;
Contributors
------------
* skulanov@mirantis.com
* vitaliy@kulanov.org.ua