1、打开用户目录,创建.bashrc 文件
touch ~/.bashrc
#用于输出git提交日志
alias git-log='git 1og --pretty=oneline --a11 --graph --abbrev-commit
#用于输出当前目录所有文件及基本信息
alias 11='1s -a]'
3、打开gitBash,执行source ~/.bashrc
4、解决GitBash乱码问题
#打开GitBash执行下面命令
git config --global core.quotepath false
感谢博主,喝杯咖啡~
还没有人发表评论