2016-03-16 60 views
0

我有一個已經在Github上刪除的舊回購的本地副本。如何在Github上恢復已刪除的存儲庫並保留所有提交歷史記錄?

這個本地副本只是一個簡單的克隆(不-bare或-mirror)言:

git clone https://github.com/olduser/oldrepo.git

我已經失去了控制這個老Github上的用戶帳戶。

如何將這個已刪除的回購上傳回Github,同時保留所有提交歷史記錄?

我要的是類似的,如果它被分叉,以恢復它,到新的位置:

https://github.com/newuser/newrepo.git

這可能嗎?

回答

1

A git remote set-url origin https://github.com/newuser/newrepo.git後面跟着git push origin應該這樣做。

相關問題