Created
April 10, 2023 07:39
-
-
Save Hansimov/b9f57e663a1fa83ecbdf967dbf843065 to your computer and use it in GitHub Desktop.
Bash aliases config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs="git status" | |
alias gb="git rev-parse --abbrev-ref HEAD" | |
alias gba="git -P branch" | |
alias gd="git diff" | |
alias gdp="git -P diff" | |
alias gdh="git diff HEAD^ HEAD" | |
alias gl="git log" | |
alias gn="git --no-pager log --pretty='format:%Cgreen[%h] %Cblue[%ai] %Creset[%an]%C(Red)%d %n %Creset%s %n' -n5" | |
alias ga="git add" | |
alias gc="git commit" | |
alias gk="git checkout" | |
alias gau="git add -u" | |
alias gcm="git commit -m" | |
alias gcan="git commit --amend --no-edit" | |
alias gp="git push" | |
alias gpf="git push -f" | |
alias gacp="git add -u && git commit --amend --no-edit && git push -f" | |
alias ta="tmux a" | |
alias td="tmux detach" | |
alias tn="tmux new -s" | |
alias tl="tmux ls" | |
alias ts="tmux select-pane -T" | |
alias k9="kill -9" | |
alias lt="ls -lt" | |
alias hi="hostname -i" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment