1
0
Fork 0

git: add aliases

This commit is contained in:
xtex 2024-01-10 09:43:56 +08:00
parent 69aff12bd7
commit 62c48d0b4c
Signed by: xtex
GPG key ID: B918086ED8045B91
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,5 @@
if status is-interactive
# Commands to run in interactive sessions can go here
end
alias g=git

View file

@ -26,3 +26,15 @@
difftool = true
[alias]
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