Skip to content

Instantly share code, notes, and snippets.

@MMachado-uy
Created October 4, 2018 19:49
Show Gist options
  • Save MMachado-uy/a8d704a327ecbf5f0e3f9a484658bf21 to your computer and use it in GitHub Desktop.
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
#!/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