bash - Syncing GIT : refspec master does not match any -


I am trying to get many GIT treasures sync-ed with our G. As these projects come and I have decided to create a script, which I call from Kronebab to prepare the script.

I tried to do it by hand and he worked, though these other repositories did not have it.

My Bash script:

  external_repos = ("OurName.projectx" "OurName.anotherproject" "OurName.thirdproject" "OurName.stackexchange") for "$ "External_repos [@]}" in "Handling" echo $ i TEMP = `echo $ i | Cut-D "." -f2` TEMP = "$ {TEMP ^}" REPO = "External- REPO- $ Temp" # printf "Temp:% s \ n" $ TEMP # printf "Report:% s \ n" $ REPO If [ D "$ i"]; Then pull $ i git to push external_developer development & amp; GIT Push Original Master Popped and GIT Clone https: // extern_u: $3cret@bitbucket.org/external/$i.git pushd $ i git Rename Remote Original external_developer Add GIT Remote Original http: // APIUser: P @ s $ W0rd @ repoorden Com / CKM / GIT / REPO GISUT Push Original Master Popped Fi   

Everything is completely completely fine, till git part .. Cloning functions Remote name work Remote add Works in works, but pushing push gives me an error:

  error: src refspec master does not match any errors: 'http: http: // APIUser: P @ s $ W0rd @ repo.ourdomain.com / scm / git / external- REPO-Projectx 'failed to push some referee'   

this error Means that the master external authority does not exist? But as far as I know it exists, I have read:

After this I did some more research in the guit and I thought that outsiders use a branch of development and The main is only for initial commitment.

Am I making some huge GIT errors? How can I fix this issue or is there a better way to sync two people?

Before I forget: I tried to add everyone and I tried a commitment first.

Read the:

The issue is resolved, one in the outer party The master's branch was not only echoing "handling" for me in a development branch "$ {External_repos [@]}"

  external_repos = ("OurName.projectx" "OurName.anotherproject" "OurName .thirdproject "" OurName.stackexchange ")" $ I TEMP = `echo $ i | cut-d". "-f2` TEMP =" $ {TEMP ^} "REPO =" external- REPO- $ Temp "# printf "Temp:% s \ n" $ TEMP # printf "Report:% s \ n" $ REPO if [- D "$ i"]; then drag $ i git to push external_developer development & git push root Popd develop other git clones Https: // extern_u: $3cret@bitbucket.org/external/$i.git pushd $ i git Remote Rename Original external_developer git Add Remote Original http: // APIUser: P @ s $ w0rd @ Repo.ourdomain.com / Scm / git / $ REPO GIT push origin is developed    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -