GitBranch=`git symbolic-ref --short -q HEAD`
RepositoryUrl=`git remote -v`
jituanGitUrl="jituanGit_Url"
qirongGitUrl=`echo ${jituanGitUrl} > /tmp/jituanGitUrl && sed "s#http://code.paic.com.cn#http://root:admin321@10.47.163.7#" /tmp/jituanGitUrl`
echo $RepositoryUrl
echo $qirongGitUrl
if [ ${GitBranch} == $1 ];then
fields_under_root: true
git remote set-url origin ${qirongGitUrl}
echo "Branch synchronization is `git remote -v`"
git push origin ${GitBranch}:${GitBranch}
echo "Branch synchronization completion"
else
echo "Please check error branch"
exit 1
fi