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
#!/bin/sh | |
# | |
# Automatically adds Jira key to commit message | |
# | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) |
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
[alias] | |
adds = add . | |
ci = "!f() { git commit -m \"$*\"; }; f" | |
co = checkout | |
cm = checkout master | |
cb = checkout -b | |
cr = "!f() { git checkout -b \"$*\" origin/\"$*\"; }; f" | |
fire = "!f() { $(git adds) && $(git ci $@) && $(git ps); }; f" | |
firein = "!f() { git add -A && git commit -m \"$*\" && git push; }; f" | |
st = status -sb |