-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
求助!github文件夹怎么删除。 #51
Comments
我也遇到了这个问题,不知道用rm指令可以吗? |
添加文件时使用 |
$ git --help # 帮助命令 |
@wangshuuyao 说的很详细!点赞 |
还有个问题,其实我的最初目的只是想改个名字,有没有只改文件夹名字的操作啊?如果像这样提交个新的文件夹,把之前的删除了,那之前的那个文件夹里commit记录是不是也没了。 |
|
还是不行啊,rm之后本地是没有了但是仓库里的没有变化,有没有更完整的操作,包括怎么拉下来传上去等等 |
commit之后还要 |
1,git rm -r 文件名 2,git commit -m “注释” 3,git push origin main |
我遇到了类似的问题——在本地把文件/文件夹用rm删除且git commit & git push origin main了还是能在github网站上看到仓库有那些文件(夹)存在。经过讨论与研究,总结解决方法如下: |
我把本地提交过的文件夹改名后push上去发现原来的文件夹没有被覆盖,现在想删除原来的文件夹怎么删啊?
The text was updated successfully, but these errors were encountered: