Skip to content

Instantly share code, notes, and snippets.

@sergsoares
Last active January 18, 2019 12:51
Show Gist options
  • Save sergsoares/0e4a174e6ed2dbcec2d880e16732f746 to your computer and use it in GitHub Desktop.
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
#!/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