Git eXtensions for improved development workflows
These custom scripts are automatically registered into the git namespace so they are available without learning any new commands!
$ gem install gitxupdate local repository with latest upstream changes and create a new feature branch
options:
--issueor-i= reference to github issue id this branch is related to
update the local feature branch with latest remote changes plus upstream released changes.
integrate the current feature branch into an aggregate branch (ex: prototype, staging)
create a pull request on github for peer review of the current branch. This command is re-runnable in order to re-assign pull requests.
options:
--assignor-a= assign pull request to github user--openor-o= open pull request in default web browser.--bumpor-b= bump an existing pull request by posting a comment to re-review new changes--approve= approve/signoff on pull request (with optional feedback)--reject= reject pull request (with details)
NOTE: the --bump option will also update the pull request commit status to mark the branch as 'pending peer review'.
This setting is cleared when a reviewer approves or rejects the pull request.
release the feature branch to the base branch (by default, main). This operation will perform the following:
- pull latest code from remote feature branch
- pull latest code from the base branch (unless
update_from_base_on_releaseconfig is set tofalse) - prompt user to confirm they actually want to perform the release
- check if pull request commit status is currently successful
- merge current branch into the base branch (or add release label if configured)
- (optional) cleanup merged branches from remote server
options:
--cleanup= automatically cleanup merged branches after release complete
delete released branches after they have been merged into the base branch.
reset an aggregate branch (ex: prototype, staging) back to a known good state.
create a build tag for the current Travis-CI build and push it back to origin
options:
--branch= configure the branch name related to the build tag--message= configure the git message associated to the tag
gitx looks for a GitHub token in this order and uses the first one it finds:
- The
GITX_GITHUB_TOKENenvironment variable (handy for CI). - The GitHub CLI: if you've run
gh auth login, gitx reuses that session throughgh auth token, so the token stays in your OS keychain. - A token cached in
~/.config/gitx/github.yml. - A prompt. gitx asks for a Personal Access Token and caches it in
~/.config/gitx/github.yml(mode0600).
If you create a token by hand, prefer a fine-grained token limited to the repositories you work on, with these repository permissions:
- Pull requests: read and write (open and update pull requests)
- Issues: read and write (add labels)
- Commit statuses: read and write (peer review status)
- Contents: read
If GitHub rejects the token because it expired or was revoked, gitx removes the cached token and tells you to rerun the command so you can enter a new one.
Any of the default settings defined in the gem can be overridden
by creating a custom .gitx.yml file in the root directory of your project.
See CONTRIBUTING.md
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
See LICENSE.txt


