Last active
January 18, 2019 12:51
-
-
Save sergsoares/0e4a174e6ed2dbcec2d880e16732f746 to your computer and use it in GitHub Desktop.
Snippet para criar um PR para a master da sua branch atual. Necessário instalar o pacote HUB do github https://github.com/github/hub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
pr() { | |
git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD) | |
hub pull-request -b master -m $@ | |
} | |
alias new-feature="git reset --hard HEAD && git checkout master && git pull origin master && git checkout -b $@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment