From ea2bd8a81be316b0030c1d7a3ff6db9311a178d6 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Tue, 17 Dec 2013 07:35:05 -0600 Subject: [PATCH] Add new git aliases * la - list all aliases * lasttag - show the most recent tag * assume, unassume, assumed, unassumeall --- git/gitconfig.symlink | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index e4035f5..15cef82 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -18,6 +18,8 @@ lg = log --graph --pretty=oneline --abbrev-commit --decorate # slight variation of pretty log graph l = log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative + # list all aliases + la = "!git config -l | grep alias | cut -c 7-" # show files that have changed between two branches (git dbr master..branch) dbr = diff --name-status # show diff of cached files @@ -54,6 +56,16 @@ # rebase the current branch with changes from upstream remote update = !git fetch upstream && git rebase upstream/`git rev-parse --abbrev-ref HEAD` + # tag aliases + # show the last tag + lasttag = describe --tags --abbrev=0 + + # assume aliases + assume = update-index --assume-unchanged + unassume = update-index --no-assume-unchanged + assumed = "!git ls-files -v | grep ^h | cut -c 3-" + unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged" + # grep commands # 'diff grep'