projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
360d367
)
Passing params to git aliases.
author
patrick nsukami
<ndkpatt@gmail.com>
Mon, 21 Sep 2015 21:51:54 +0000
(21:51 +0000)
committer
patrick nsukami
<ndkpatt@gmail.com>
Mon, 21 Sep 2015 21:51:54 +0000
(21:51 +0000)
.gitconfig
patch
|
blob
|
history
diff --git
a/.gitconfig
b/.gitconfig
index
1ce6d72
..
d43b27f
100644
(file)
--- a/
.gitconfig
+++ b/
.gitconfig
@@
-77,6
+77,11
@@
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
+ # how to pass params to git aliases
+ my-alias1 = "!f(){ echo \"$@\"; }; f" # define a func, then call the func.
+ my-alias2 = "! date " # call the cmd directly
+
+
[color]
ui = always
branch = auto