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-readme
Demo:
- Git
On macOS or Linux, you can install GG via Homebrew:
brew tap nicasso/gg
brew install gg
brew update && brew upgrade nicasso/gg/gg
To remove GG:
brew uninstall gg
brew untap nicasso/gg
GG combines multiple (Git) commands for you, for faster and easier single commit merge requests.
git checkout
First it creates a new branch with the provided name;git commit
Then it creates the commit with the provided commit message;git push
After that it pushes to the created branch;open
Then 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 checkout
Finally 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.