我目前有2个引用指向同一个远程Github存储库。两个引用具有相同的远程URL,所以当我这样做时
Create TestTable
USE TestData
GO
CREATE TABLE CSVTest
(ID INT,
FirstName VARCHAR(40),
LastName VARCHAR(40),
BirthDate SMALLDATETIME)
GO
BULK
INSERT CSVTest
FROM 'c:\csvtest.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO
--Check the content of the table.
SELECT *
FROM CSVTest
GO
--Drop the table to clean up database.
DROP TABLE CSVTest
GO
我得到:
git remote -v
我想删除myrepo https://github.com/<user ID>/myrepo (fetch)
myrepo https://github.com/<user ID>/myrepo (push)
origin https://github.com/<user ID>/myrepo (fetch)
origin https://github.com/<user ID>/myrepo (push)
远程引用而不删除远程仓库。因此,在执行myrepo
时,我想结束以下内容:
git remote -v
我不确定origin https://github.com/<user ID>/myrepo (fetch)
origin https://github.com/<user ID>/myrepo (push)
是删除远程存储库还是仅删除对它的引用。
答案 0 :(得分:0)
git remote rm myrepo
是您要寻找的。它不会删除远程存储库,只会删除您对它的本地引用。