dotfiles/nushell/config/git.nu

47 lines
678 B
Plaintext
Raw Normal View History

2023-11-13 09:59:32 +00:00
# git aliases
2023-11-24 09:14:42 +00:00
# git
2023-11-13 09:59:32 +00:00
alias g = git
2023-11-24 09:14:42 +00:00
# git add
2023-11-13 09:59:32 +00:00
alias ga = git add
2023-11-24 09:14:42 +00:00
# git add --all
2023-11-13 09:59:32 +00:00
alias gaa = git add --all
2023-11-24 09:14:42 +00:00
# git checkout
2023-11-13 09:59:32 +00:00
alias gco = git checkout
2023-11-24 09:14:42 +00:00
# git checkout -b
2023-11-13 09:59:32 +00:00
alias gcb = git checkout -b
2023-11-24 09:14:42 +00:00
# git commit
2023-11-13 09:59:32 +00:00
alias gc = git commit --verbose
2023-11-24 09:14:42 +00:00
# git commit --all
2023-11-13 09:59:32 +00:00
alias gca = git commit --verbose --all
2023-11-24 09:14:42 +00:00
# git diff
2023-11-13 09:59:32 +00:00
alias gd = git diff
2023-11-24 09:14:42 +00:00
# git log
2023-11-13 09:59:32 +00:00
alias glog = git log --oneline --decorate --graph
2023-11-24 09:14:42 +00:00
# git pull
2023-11-13 09:59:32 +00:00
alias gl = git pull
2023-11-24 09:14:42 +00:00
# git push
2023-11-13 09:59:32 +00:00
alias gp = git push
2023-11-24 09:14:42 +00:00
# git status
2023-11-13 09:59:32 +00:00
alias gst = git status
2023-11-24 09:14:42 +00:00
# git status
2023-11-13 09:59:32 +00:00
alias gs = git status
2023-11-24 09:14:42 +00:00
# git merge
2023-11-15 09:42:23 +00:00
alias gm = git merge
2023-11-24 09:14:42 +00:00
# git push --set-upstream ...
2023-11-13 09:59:32 +00:00
def gpsup [] { git push --set-upstream origin (git rev-parse --abbrev-ref HEAD) }