-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliases
31 lines (26 loc) · 982 Bytes
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
###############
# Git Aliases #
###############
alias gb='git branch'
alias gc='git commit'
# Remove `+` and `-` from start of diff lines; just rely upon color.
alias gd='git diff --color | sed "s/^\([^-+ ]*\)[-+ ]/\\1/" | less -r'
alias ge='git-edit-new'
alias gl='git pull --prune'
alias gp='git push origin HEAD' # or, alias gp="git push"
alias gs='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias gac='git add -A && git commit -m'
alias gca='git commit -a'
alias gcb='git copy-branch-name'
alias gco='git checkout'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias prune="git fetch --all -p; git branch -vv | grep \": gone]\" | awk '{ print \$1 }' | xargs -n 1 git branch -D"
###############
# System #
###############
alias l='ls -lah'
###############
# Misc #
###############
alias api="task api:serve"
alias web="task serve"