创建shell文件
1.创建shell执行文件xxx.sh
touch xxx.sh
2.打开xxx.sh文件
vim xxx.sh
3.编写xxx.sh文件
cd "路径"
git add .
read commitRemark
git commit -m commitReamrk
git push
4.保存文件,按esc后:wq保存
编写执行别名 alias
1.进入.bash_profile或.zshrc,输入
alias pm=".sh文件路径"
2.保存后,刷新一下
source .bash_profile
3.然后就可以通过别名快速执行
pm
Comments NOTHING