安装gitbash,然后再打开 D:\Program Files\Git\etc\profile.d\aliases.sh ,输入下面的代码,重启gitbash就可以使用快捷命令了
# --show-control-chars: help showing Korean or accented characters alias ls=‘ls -F --color=auto --show-control-chars‘ alias ll=‘ls -l‘ alias ga=‘git add ‘ alias gd=‘git diff ‘ alias gc=‘git commit‘ alias gca=‘git commit --amend‘ alias gs=‘git status‘ alias gl=‘git log‘ alias gb=‘git branch‘ alias gba=‘git branch -a‘ alias gco=‘git checkout ‘ alias gp=‘git pull ‘ alias gpr=‘git pull --rebase‘ alias gsu=‘git stash push ‘ alias gso=‘git stash pop ‘ alias gf=‘git fetch ‘ alias gpv=‘git push ‘ alias gr=‘git reset ‘