Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-11-27 08:00:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
93ee15a552aec6e98ec97639fbcca77803a0d75a
93ee15a5
1 parent
55461e86
udpate github commit to git commit
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
14 行增加
和
17 行删除
trunk/scripts/github.commit.sh → trunk/scripts/git.commit.sh
trunk/scripts/git
hub
.commit.sh → trunk/scripts/git.commit.sh
查看文件 @
93ee15a
...
...
@@ -35,35 +35,32 @@ function remote_check()
remote_check origin git@github.com:winlinvip/simple-rtmp-server.git
remote_check srs.csdn git@code.csdn.net:winlinvip/srs-csdn.git
remote_check srs.oschina git@git.oschina.net:winlinvip/srs.oschina.git
ok_msg
"remote check ok"
function
sync_push
()
{
repository
=
$1
branch
=
$2
for
((
;;
))
;
do
git push
$
repository
$branch
git push
$
*
ret
=
$?
;
if
[[
0 -ne
$ret
]]
;
then
failed_msg
"
提交
$repository
/
$branch
分支失败,自动重试"
;
failed_msg
"
Retry for failed:
$*
"
continue
else
ok_msg
"
提交
$repository
/
$branch
分支成功
"
ok_msg
"
Success:
$*
"
fi
break
done
ok_msg
"
$repository
/
$branch
同步git成功"
}
sync_push origin master
sync_push origin 1.0release
sync_push srs.csdn master
sync_push srs.csdn 1.0release
sync_push srs.oschina master
sync_push srs.oschina 1.0release
ok_msg
"sync push ok"
sync_push --all origin master
sync_push --all origin 1.0release
sync_push --all srs.csdn master
sync_push --all srs.csdn 1.0release
sync_push --all srs.oschina master
sync_push --all srs.oschina 1.0release
ok_msg
"push refs ok"
sync_push srs.csdn --tags
sync_push srs.oschina --tags
ok_msg
"sync tags ok"
sync_push --tags srs.csdn
sync_push --tags srs.oschina
ok_msg
"push tags ok"
exit
0
...
...
请
注册
或
登录
后发表评论