V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  buaawcy  ›  全部回复第 1 页 / 共 1 页
回复总数  2
🆙
2020-10-10 11:20:43 +08:00
回复了 buaawcy 创建的主题 问与答 一个关于 shell 脚本的问题,求大神解答
git_push() {
curBranch=`git symbolic-ref --short -q HEAD`
git add .;
git cm -m $@;
git pr "$curBranch";
}

git_merge_test() {
curBranch=$(echo $(git symbolic-ref --short -q HEAD))
git co wcy_test1
git merge $curBranch
git_push "merge"
git co $curBranch
}

贴一下完整的命令
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5576 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 03:20 · PVG 11:20 · LAX 20:20 · JFK 23:20
Developed with CodeLauncher
♥ Do have faith in what you're doing.