У меня есть репо, которое не было связано с репо, на которое я хотел бы sh отправить его. После проверки мы готовы отправить его для комментариев на работе.
сначала я добавил репозиторий upstream, который хотел бы отправить sh в:
git remote add upstream git@ssh.dev.azure.com:v3/place/projectgroup/repo
Это первый и единственный добавленный апстрим, поскольку до этого он жил только на моем Ma c. затем я пытаюсь добавить восходящий поток:
$ git branch --set-upstream-to origin/candidate/1.0
error: the requested upstream branch 'origin/candidate/1.0' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote, you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart, you may want to use
hint: "git push -u" to set the upstream config as you push.
$ git push -u origin/candidate/1.0 HEAD
fatal: 'origin/candidate/1.0' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Мой вопрос в том, как мне сделать sh мою текущую ветку до удаленного репо, используя имя восходящего потока, которое еще не существует?