Skip to main content

A git command automation for multiple repositories

Project description

# octohot

A git command automation for multiple repositories

#### Installation

pip3 install octohot

# First use

Create a octohot.yml in an empty folder with organization name, your token and a optional
repo list.
#### octohot.yml example
github_organization: Hotmart-Org
github_token: <GITHUB_TOKEN>
repositories:
- git@github.com:organization/repo1.git
- git@github.com:organization/repo2.git
- git@github.com:organization/repo3.git

# Sync, replace and apply usage

octohot github org import # import all repositories from organization to octohot.yml
octohot sync # Clone, reset, delete unpushed Branches, pull all repos in octohot.yml
octohot regex find "[A-Z]*" # Find all upper case words
octohot regex replace "[0-9]*" "" # remove all numbers
octohot regex replace "foo" "baz" # replace foo to baz
octohot apply # Pull, branch, add, commit, push and make a optional PR

# Main commands

Clone, reset, delete unpushed branches, pull all repos

octohot sync

Pull, create branch, add, commit, push and make an optional PR on all branches

octohot apply

# All Commands

octohot --help

### git Provider

git provider for octohot

octohot git --help

Create/Change branch in all repos

octohot git branch

Clone all repos

octohot git clone

Commit added changes in all repos

octohot git commit

Get diff from all repos

octohot git diff

Pull all repos

octohot git pull

Push all repos

octohot git push

Reset all repos

octohot git reset

### GitHub Provider

GitHub provider for octohot

octohot github --help

Make a PR in all GitHub repos from a specific branch

octohot github pr

Import all repositories to octohot.yml config file from a Organization from
GitHub

octohot github org import

List all repositories to octohot.yml config file from a Organization from
GitHub

octohot github org list

### RegEx Provider

Perl RegEx provider for octohot

octohot regex --help

Find a regular expression in all repos and list files and matches

octohot regex find

Find and replace a string in all repos

octohot regex replace

## Contributing

Pull requests for new features, bug fixes and suggestions are welcome!

## License

GNU General Public License v3 (GPLv3)

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

octohot-0.0.7.tar.gz (20.5 kB view details)

Uploaded Source

File details

Details for the file octohot-0.0.7.tar.gz.

File metadata

  • Download URL: octohot-0.0.7.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for octohot-0.0.7.tar.gz
Algorithm Hash digest
SHA256 472947cd2044de4587f45397d2d2061cf783bc96daec7a1a884d275aa3c51964
MD5 73a96f56d8a026ad0960f7abcae90fef
BLAKE2b-256 6dbc92e8a2a32337213c8d3f2ccc9deec55d52de7528492e70387f67a800c70d

See more details on using hashes here.

Supported by

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