Skip to content

Commit

Permalink
Update git aliases and sort sections
Browse files Browse the repository at this point in the history
  • Loading branch information
af committed Jul 11, 2018
1 parent 7cfa036 commit d17d4bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions gitconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[user]
name = Aaron Franks
email = aaron.franks@gmail.com
name = Aaron Franks
[color]
diff = auto
ui = true
Expand All @@ -9,11 +9,11 @@
local = yellow
remote = green
[color "diff"]
meta = 227
commit = 227 bold
frag = magenta bold
old = red bold
meta = 227
new = green bold
commit = 227 bold
old = red bold
whitespace = red reverse
[color "status"]
added = yellow
Expand All @@ -25,16 +25,16 @@
ci = commit
cp = cherry-pick
changed = !git --no-pager diff --name-only
resume = !git --no-pager show --pretty="format:" --name-only # List files changed in a given commit (default: HEAD)
d = diff
hash = rev-parse HEAD
latest = for-each-ref --sort=-committerdate refs/heads --format='%(committerdate:short) %(refname:short)'
ls = ls-files
mvhead = branch -f
resume = !git --no-pager show --pretty="format:" --name-only # List files changed in a given commit (default: HEAD)
s = status
undo = reset --soft HEAD^
unstage = reset HEAD
latest = for-each-ref --sort=-committerdate refs/heads --format='%(committerdate:short) %(refname:short)'
trim = !sh -c 'git branch --merged master | grep -v master | xargs -n 1 git branch -d'
trim = !sh -c 'git branch --merged | grep -v master | grep -v dev | xargs -n 1 git branch -d && git fetch --prune'
[branch]
autosetupmerge = true
[core]
Expand All @@ -44,7 +44,7 @@
[push]
default = current
[color "diff-highlight"]
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
newNormal = green bold
oldHighlight = red bold 52
oldNormal = red bold
1 change: 0 additions & 1 deletion gitignore_global
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.DS_Store
Session.vim
tags
1 change: 1 addition & 0 deletions tigrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ bind generic d !@zsh -c "git branch -d %(branch)" # remove the selected br
bind generic D !@zsh -c "git branch -D %(branch)" # Force-remove the selected branch
bind generic c !@zsh -c "git checkout %(branch)" # Checkout the selected branch (even remote)
bind generic R !@zsh -c "git checkout master && git branch -D %(branch) && git co %(branch)" # "re-checkout" a remote branch
bind generic T !@zsh -c "git trim"
bind generic s view-stash # regular mapping for this is 'y'

set refresh-mode = periodic
Expand Down

0 comments on commit d17d4bb

Please sign in to comment.