text 从git中删除远程

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 从git中删除远程相关的知识,希望对你有一定的参考价值。

git remote -v
# View current remotes
origin  https://github.com/OWNER/REPOSITORY.git (fetch)
origin  https://github.com/OWNER/REPOSITORY.git (push)
destination  https://github.com/FORKER/REPOSITORY.git (fetch)
destination  https://github.com/FORKER/REPOSITORY.git (push)
git remote rm destination
# Remove remote
git remote -v
# Verify it's gone
origin  https://github.com/OWNER/REPOSITORY.git (fetch)
origin  https://github.com/OWNER/REPOSITORY.git (push)

以上是关于text 从git中删除远程的主要内容,如果未能解决你的问题,请参考以下文章

text 删除所有git远程标签#git

如何查看git远程仓库中的文件

git找回一个已经从远程仓库删除的文件

如何从 Git 中删除无效的远程分支引用?

git删除了本地文件,从远程仓库中恢复

从远程 Git 存储库中完全删除提交