Skip to content

Instantly share code, notes, and snippets.

@galkin
Created October 12, 2019 12:14
Show Gist options
  • Save galkin/29153adcd0fdd2c4785a5c0c192f0cd7 to your computer and use it in GitHub Desktop.
Save galkin/29153adcd0fdd2c4785a5c0c192f0cd7 to your computer and use it in GitHub Desktop.
Example git-done
#!/usr/bin/env bash
DEFAULT_BRANCH=master
CURRENT_BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
git checkout ${DEFAULT_BRANCH}
git pull
git branch -D ${CURRENT_BRANCH}
open https://jira.gamaya.com:8443/browse/${CURRENT_BRANCH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment