[英]how can i delete a git repo without removing the files in it
i dont want to remove the files but just the old repository.我不想删除文件,只想删除旧存储库。 everytime i go to commit it, it wont let me because its part of another repository
每次我 go 提交它时,它不会让我因为它是另一个存储库的一部分
C:\Users\travi\Desktop\github 1.16>git commit -a
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: mods (modified content, untracked content)
no changes added to commit (use "git add" and/or "git commit -a")```
Check if you have, by mistake, initialized a Git repository in C:\Users\travi\Desktop\
检查您是否错误地在
C:\Users\travi\Desktop\
中初始化了 Git 存储库
dir C:\Users\travi\Desktop\.git
It yes, you could delete that one, leaving only C:\Users\travi\Desktop\github 1.16\.git
, meaning: a Git repository in your current project, instead of a parent folder of that project.是的,你可以删除那个,只留下
C:\Users\travi\Desktop\github 1.16\.git
,意思是:一个 Z0BCC70105AD279503E31FE7B3F47B6 项目的父文件夹,而不是当前项目存储库中的父文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.