git配置别名

每次申请一个新的开发机(docker)都要手动配置一遍git别名,所以写了一个脚本文件git_alias_config.sh,以后直接运行此脚本,为防止以后用的时候再写,记录于此

#!/bin/bash
set -v
git config --global alias.st status
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.sub submodule
原文地址:https://www.cnblogs.com/guoliushui/p/10985314.html