git - 如何从 git repo 中删除一个文件夹?

标签 git bitbucket

<分区>

我有一个名为“服务器端项目”的文件夹,我想从我的在线 git 存储库中删除它。我似乎无法摆脱它!如何删除它?

enter image description here

最佳答案

你可以只删除本地文件夹然后推送,例如:
rm -rf 文件夹
git 添加。
git commit -a -m "已删除的文件夹"
git push origin master

关于git - 如何从 git repo 中删除一个文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26838177/

相关文章:

github - 用SourceTree制作标签

git - 跳过提交并在 Git 中

python - Jenkins + docker

python - Django注册无法显示欢迎页面

git - 使用只读用户运行 git 守护进程给出 "fatal: cannot drop privileges"

git - "fatal: strange pathname ' -im/somerepo.git' 被阻止

android - 使用 repo 同步 android 源时出现 UnicodeDecodeError

git - 如何将 git commit date 插入到正在提交的文件中?

java - 支持 Netbeans 和 Eclipse 用户的 Git 存储库的最佳实践

Git 日志 : filter by commit's author date