Created
October 12, 2019 12:14
-
-
Save galkin/29153adcd0fdd2c4785a5c0c192f0cd7 to your computer and use it in GitHub Desktop.
Example git-done
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
#!/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