cd .. name=$( pwd|awk -F "/" '{print $NF}') git remote add origin https://gitlab.com/unitedservice/${name}.git group=$(cat terraform/gitlab/_.tf|grep "mirror_group="|awk -F '"' '{print $2}') echo group:$group git remote add ci https://gitlab.com/${group}/${name}.git git remote -v git add * git commit -am "init" git push origin master --force git push ci master --force