git: add aliases
This commit is contained in:
parent
69aff12bd7
commit
62c48d0b4c
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
if status is-interactive
|
if status is-interactive
|
||||||
# Commands to run in interactive sessions can go here
|
# Commands to run in interactive sessions can go here
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias g=git
|
||||||
|
|
12
.gitconfig
12
.gitconfig
|
@ -26,3 +26,15 @@
|
||||||
difftool = true
|
difftool = true
|
||||||
[alias]
|
[alias]
|
||||||
dft = difftool
|
dft = difftool
|
||||||
|
logt = "!f() { GIT_EXTERNAL_DIFF=difft git log -p --ext-diff $@; }; f"
|
||||||
|
l = log
|
||||||
|
lt = logt
|
||||||
|
c = commit
|
||||||
|
p = push
|
||||||
|
g = pull
|
||||||
|
f = fetch
|
||||||
|
s = status
|
||||||
|
a = add
|
||||||
|
d = diff
|
||||||
|
dt = difftool
|
||||||
|
cp = cherry-pick
|
||||||
|
|
Loading…
Reference in a new issue