switchbox
A collection of small tools for git workflows.
Installation
Clone the repository and install the package with pip.
pip install --user .
Usage
Invoke switchbox directly or run it via git switchbox.
Switchbox commands assume your git repository has a "mainline" branch and an
"upstream" remote. When Switchbox is used for the first time (or you run
switchbox setup) it will find and remember names for these.
- Mainline will default to a branch named
mainormaster. - Upstream will default to a remote named
upstreamororigin.
Switchbox options are set in a repository's .git/config file under a
switchbox section.
switchbox config
Show config options that Switchbox has set.
switchbox config init
Detect a mainline branch and upstream remote, and save them to the repositories git configuration. This will be done automatically when you first use a command that works on a mainline branch or upstream remote.
switchbox config mainline $branch
Change the mainline branch.
switchbox config upstream $remote
Change the upstream remote.
switchbox finish [--update/--no-update]
- Update all git remotes.
- Update the local mainline branch to match the remote mainline branch.
- Switch to the mainline branch.
- Remove branches merged into the mainline branch.
- Remove branches squashed into the mainline branch.
switchbox tidy [--update/--no-update]
- Update all git remotes.
- Remove branches merged into the mainline branch.
- Remove branches squashed into the mainline branch.
switchbox update
- Update all git remotes.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file switchbox-0.2.0.tar.gz.
File metadata
- Download URL: switchbox-0.2.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d434129f15506f564c2a4256a69d5acff73482ab6fc1712a3be21058dd9980fd
|
|
| MD5 |
f63f72576cebee9bebb6b8a08e04e192
|
|
| BLAKE2b-256 |
846412d59c787340ab3ca027890f3ccd974c46ee5646f0f49aa6f656d05229f5
|
File details
Details for the file switchbox-0.2.0-py3-none-any.whl.
File metadata
- Download URL: switchbox-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.15 CPython/3.10.6 Linux/5.15.0-47-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26c4d998710fe2f7e9f4135f84a0085e660fad03a1932df6a3c08972482652df
|
|
| MD5 |
79e04e61f49068620314401954cfa372
|
|
| BLAKE2b-256 |
fc9031651f0b5b842f6d9b9ad83712cd6b59e229ea6fcd3238004e3921200176
|