Skip to content

Commit

Permalink
Updated aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenway committed Apr 3, 2018
1 parent eeebc4b commit 9d15487
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
# Switch to a branch, creating it if necessary
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"

# Flow
ft = "!f() { git checkout -b feature/$@; }; f"

# Remove branches that have been merged with master
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"

Expand All @@ -47,10 +50,6 @@
# Emoji commits
initial = !bash -c 'git commit -m \":sunrise: Initial commit\"'

# Flow
feature = "!feature() { git checkout -b feature/$@; }; feature"
mypulls = browse -- pulls/stephenway

[core]
excludesfile = ~/.gitignore_global
pager = diff-so-fancy | less --tabs=1,5 -R
Expand Down

0 comments on commit 9d15487

Please sign in to comment.