Skip to main content

git-submodule made easy with git-toprepo

Project description

git-submodule made easy with git-toprepo

The git-toprepo script acts a bit like a client side git-subtree based on the submodules in a top repository. It has support for one level of submodules only, no recursive submodules will be resolved.

git toprepo init <repository> [<directory>] will clone repository into directory, replaces the submodule pointers with the actual content in the repository history.

git toprepo fetch fetches from the remote and performs the submodule resolution.

git toprepo pull is the same as toprepo fetch && git merge.

git toprepo push [-n/--dry-run] <rev>:<ref> ... does a reverse submodule resolution so that each submodule can be pushed individually to each submodule upstream. If running with -n or --dry-run, the resulting git push command lines will be printed but not executed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git_toprepo-0.1.0rc1.tar.gz (37.0 kB view hashes)

Uploaded Source

Built Distribution

git_toprepo-0.1.0rc1-py3-none-any.whl (37.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page