簡體   English   中英

將Visual Studio 2017解決方案從一個GitHub帳戶移動到新的Github帳戶的問題

[英]Issues with Moving Visual Studio 2017 Solution from one GitHub account to a new Github account

我以前希望將TFS與Visual Studio 2017(VS)和Visual Studio Team Services(VSTS)一起使用,但是Microsoft從VSTS中刪除了TFS選項,並用DevOps替換了它,無論如何都沒有丟失,我能夠打開GitHub帳戶對於我的版本控制,並將GitHub擴展添加到我的Visual Studio 2017中,效果很好,就像與VS 2017一起使用TFS一樣簡單。我對Microsoft收購GitHub並與VS 2017集成感到非常滿意。

我在GitHub上有一個付費的開發者帳戶,每月支付7美元,在https://github.com/ABION-Technology/上它運行良好,但是現在微軟改變了免費GitHub帳戶與以前的開發者幾乎相同的地方版本,因此我在https://github.com/Michael-G-Workman/上創建了一個新的免費Github帳戶,我想將公共存儲庫從Abion Technology帳戶移至新的免費帳戶。 使用GitHub中的TRANSFER選項,我將BLOGGING存儲庫轉移到了新的免費GitHub, 網址https://github.com/Michael-G-Workman ,沒問題。

但是我遇到的問題是,當我嘗試將Blogging解決方案同步到Visual Studio中的新Github時,它會生成一個錯誤,但仍然期望VS解決方案BLOGGING位於https://github.com/ABION-Technology/ ,而不是https://github.com/Michael-G-Workman/上的新Github帳戶,它將生成以下錯誤輸出:

C:\Users\New User\source\repos\Blogging
Commit 32344f00 created locally in repository C:\Users\New User\source\repos\Blogging
Remote: Permission to ABION-Technology/Blogging.git denied to Michael-G-Workman.
Error encountered while pushing to the remote repository: Git failed with a fatal error.
unable to access 'https://github.com/ABION-Technology/Blogging.git/': The requested URL returned error: 403

而且似乎git在我的Visual Studio 2017中,但是Git工具(例如Git Bash)沒有,當我嘗試安裝Git工具時,除了工具-> EXTENSIONS&UPDATES中的GitHub擴展之外,Git沒有可用的其他工具。

我認為可能有一個非常簡單的修復程序可以解決此問題,但不知道該修復程序將是什么

好的,我找到了一個解決此問題的簡單方法,在Visual Studio 2017的TEAM EXPLORER中,單擊以下設置->存儲庫設置->編輯,請注意屏幕快照,就像許多Visual Studio問題一樣,這是一個非常簡單的修復程序,更改了https的路徑://github.com/ABION-Technology/https://github.com/Michael-G-Workman/

設置1

設置2

設置3

設置4

暫無
暫無

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

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