简体   繁体   English

'origin/develop' 似乎不是 git 存储库。 无法从远程存储库读取

[英]'origin/develop' does not appear to be a git repository. Could not read from remote repository

New to git. git 新手。 I cloned a repo to local, create a branch on the local, changed and add some files, committed the change, and try to pushed it back to the remote using the following sequence of commands and got errors.我将一个 repo 克隆到本地,在本地创建一个分支,更改并添加一些文件,提交更改,并尝试使用以下命令序列将其推回远程并出现错误。 Could someone point out what the reason that caused the error?有人能指出导致错误的原因吗?

bash-4.4$ cd /home/abc/M3-release4checkin
bash-4.4$ git clone https://bitbucket.agile.com/scm/proj1/repo1.git
bash-4.4$ cd repo1/frontend
bash-4.4$ pwd
/home/abc/M3-release4checkin/repo1/frontend

bash-4.4$ git status
On branch develop
Your branch is up to date with 'origin/develop'.

nothing to commit, working tree clean

bash-4.4$ git checkout -b M3-release-frontend
Switched to a new branch 'M3-release-frontend'

bash-4.4$ cp -r ../../{security,utils,sample_responses,sample_trades,sa_trade_archive,sa_trade_data} .

bash-4.4$ git add --all

bash-4.4$ git commit -m "CHG#-1625: Milestone3 release (frontend)"
[M3-release-frontend d771fb7] CHG#-1625: Milestone3 release (frontend)
 Committer: Joe Doe <joedoe@localhost.localdomain>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 25 files changed, 5111 insertions(+), 143 deletions(-)
 create mode 100755 frontend/common/avsc_lib.py
...


bash-4.4$ git push --set-upstream origin/develop M3-release-frontend
fatal: 'origin/develop' 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.

I was added as one of the "Admin" of the Repository (BitBucket).我被添加为存储库 (BitBucket) 的“管理员”之一。

Below is what I did:以下是我所做的:

  1. I created the branch M3-release-frontend on the remote repository.我在远程存储库上创建了分支 M3-release-frontend。
  2. I ran git push --set-upstream origin M3-release-frontend我跑了 git push --set-upstream origin M3-release-frontend

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Git 推送:“致命的‘起源’似乎不是 git 存储库 - 致命无法从远程存储库读取。” - Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository." Git push origin master -f:“致命的'origin'似乎不是 git 存储库 - 致命无法从远程存储库读取。” - Git push origin master -f : “fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository.” Git推送:“致命的&#39;master&#39;似乎不是git存储库-致命无法从远程存储库读取。” - Git push: “fatal 'master' does not appear to be a git repository - fatal Could not read from remote repository.” 捆绑安装失败“ ..似乎不是致命的git存储库:无法从远程存储库读取。” - bundle install fail “..does not appear to be a git repository fatal: Could not read from remote repository.” Git推送失败“致命:&#39;origin&#39;似乎不是致命的git存储库:无法从远程存储库读取” - Git push failed “fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository” 无法从远程存储库读取并且似乎不是 git 存储库错误 - Could not read from remote repository and does not appear to be a git repository erros 无法从远程存储库读取。 SwiftyDropbox - Could not read from remote repository. SwiftyDropbox 无法克隆git存储库似乎不是致命的git存储库:无法从远程存储库读取 - Cannot clone git repository does not appear to be a git repository fatal: Could not read from remote repository 致命:“webrtmt”似乎不是 git 存储库无法从远程读取 - fatal: 'webrtmt' does not appear to be a git repository could not read from remote Git:权限被拒绝(公钥)致命 - 无法从远程存储库读取。 克隆 Git 存储库时 - Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM