Last active
November 16, 2016 16:13
-
-
Save zvictor/77c41cc2b24400bc251c50e94c66d150 to your computer and use it in GitHub Desktop.
A simplified version of the git commands found on http://www.praqma.com/stories/a-pragmatic-workflow/
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
# Based on http://www.praqma.com/stories/a-pragmatic-workflow/ | |
# | |
# Add this to your git configurations using: | |
# $ git config --global --edit | |
[alias] | |
issue-branch = "!f() { MATCH=#$1:; ghi show $1 2>/dev/null | grep $MATCH | sed s/$MATCH/$1/g | sed 's/ /-/g' | sed s/[:\\']//g; }; f" | |
issue-wip = "!f() { ghi label $1 'in progress'; }; f" | |
work-on = "!f() { BRANCH=`git issue-branch $1`; git fetch origin; git checkout $BRANCH 2> /dev/null || git checkout -b $BRANCH; git issue-wip $1; ghi assign $1; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment