Skip to content

Instantly share code, notes, and snippets.

@roeniss
Created January 27, 2022 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roeniss/ca2a606f62554974c794a25324bbd9eb to your computer and use it in GitHub Desktop.
Save roeniss/ca2a606f62554974c794a25324bbd9eb to your computer and use it in GitHub Desktop.
git push but always success even if remote branch is not created yet
git push || git push 2>&1 | sed -n 4p | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment