Created
October 4, 2018 19:49
-
-
Save MMachado-uy/a8d704a327ecbf5f0e3f9a484658bf21 to your computer and use it in GitHub Desktop.
Tired of typing git push origin some-ugly-branch-name-with-ticket-number-and-project-reference? Just git deliver it
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
#!/bin/bash | |
# Save in a PATH-seen folder and it should be ready to go in git as git deliver | |
# Pushes your current changes to origin/same-as-current-branch | |
branch=$(git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/\1/p') | |
git push origin $branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment