创建Git Push一键推送所有

创建Git别名命令: git config --global alias.push-all '!git add -A && git commit -m "Auto commit" && git push'

每次只需要执行: git push-all

 

服务器创建脚本,一键拉数据

vi ~/.bashrc

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias xndoll='cd /www/wwwroot/X1.com/ && git pull'
alias pidoll='cd /www/wwwroot/X2.com/ && git pull'
alias palstoy='cd /www/wwwroot/X3.com/ && git pull'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias php74='php74 -c /www/server/php/74/etc/php-cli.ini'

posted @ 2024-05-03 14:14  快乐的在一起  阅读(42)  评论(0)    收藏  举报