簡體   English   中英

'origin/develop' 似乎不是 git 存儲庫。 無法從遠程存儲庫讀取

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

git 新手。 我將一個 repo 克隆到本地,在本地創建一個分支,更改並添加一些文件,提交更改,並嘗試使用以下命令序列將其推回遠程並出現錯誤。 有人能指出導致錯誤的原因嗎?

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.

我被添加為存儲庫 (BitBucket) 的“管理員”之一。

以下是我所做的:

  1. 我在遠程存儲庫上創建了分支 M3-release-frontend。
  2. 我跑了 git push --set-upstream origin M3-release-frontend

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM