Skip to content

Instantly share code, notes, and snippets.

View felipeeleuterio's full-sized avatar

Felipe Eleutério felipeeleuterio

  • Blumenau - SC - BR
View GitHub Profile
[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
#!/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)