GG speeds up the creation of those pesky single commit merge requests by combining several (Git) commands into one.
It currently supports Github, Gitlab, and Bitbucket merge requests (or pull requests depending on the platform).
Written example including the commit message:
➜ gg feature/typo-in-readme "Fix a typo in the README.md"Written example where you can add the commit message in your favourite text editor:
➜ gg feature/typo-in-readmeDemo:
- Git
On macOS or Linux, you can install GG via Homebrew:
brew tap nicasso/gg
brew install ggbrew update && brew upgrade nicasso/gg/ggTo remove GG:
brew uninstall gg
brew untap nicasso/ggGG combines multiple (Git) commands for you, for faster and easier single commit merge requests.
- git checkoutFirst it creates a new branch with the provided name;
- git commitThen it creates the commit with the provided commit message;
- git pushAfter that it pushes to the created branch;
- openThen it looks for the url used for creating a new merge request in the response of the git push command and opens that page in your browser;
- git checkoutFinally it does a checkout back to the repository you started from;
Nothing I can think of for now. If you have any suggestions, please open an issue.
Project License can be found here.