2017-02-23 124 views
0

我已經克隆了我的團隊項目的分支,並且我有尚未部署的代碼,但我必須暫時與主進行當前更改,以便我可以完成下一次迭代我的衝刺。我已經檢查出主人的分支,所以我的代碼在另一個分支,並在主人。更新分支內的主分支

我想重置我的fork中的主設備,以便從可部署主設備進行最新更改。我主要做以下,並收到相應的輸出:

git branch 
    Other_Branch 
    *master 

git remote add upstream url/toRepoOnGitHub 
    fatal: remote upstream already exists 

git fetch upstream 
    fatal: 'url/to/original/repo' 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 

我最近了解到的分支,這是我的工作流程,但現在我想知道如何解決這個出於好奇。謝謝。

回答

0

似乎遠程存儲庫不存在或者您添加了錯誤的存儲庫。

我的建議是先刪除的起源和重新添加它:

git remote remove upstream 
git remote add upstream https://github.com/username/repository 
相關問題