Skip to content

Instantly share code, notes, and snippets.

@Hansimov
Last active April 14, 2023 15:42
Show Gist options
  • Save Hansimov/c25dd42f95cff3dd6b315e4e6dd84927 to your computer and use it in GitHub Desktop.
Save Hansimov/c25dd42f95cff3dd6b315e4e6dd84927 to your computer and use it in GitHub Desktop.
Git Bash aliases.sh configs

Add commands to Git Bash path (D:\Git\etc\profile.d\aliases.sh):

# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'

# Add commands here
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
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'c
alias gl='git log'
alias ga='git add'
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 gn="git --no-pager log --pretty='format:%Cgreen[%h] %Cblue[%ai] %Creset[%an]%C(Red)%d %n  %Creset%s %n' -n5"

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment