ALearner

  • 首页
  • Python
  • Linux
  • Java
  • 工具
  • 前端
  • 算法
  • My World
HelloStranger
每个人都是初学者
  1. 首页
  2. 工具
  3. 正文

github上怎么删除一个文件夹?

2017年11月10日 8252点热度 0人点赞 0条评论
[title]情境(Situation)[/title]

在GitHub上创建了一个项目DailyReview,起先忘了加 .gitingnore,导致.idea文件被上传上去

[title]任务(Task)[/title]

删除远程GitHub库DailyReview中的.idea文件

[title]行动(Action)[/title] 如果直接git rm本地的文件夹也被删除(或者首先将文件夹添加到.gitignore中),应该删缓冲。
According to Remove directory from remote repository after adding them to .gitignore
这样合理:

 git rm -r --cached some-directory
 git commit -m "Remove the now ignored directory some-directory"

最后push~
[title]结果(Result)[/title]

远程的.idea文件夹被删除

相关

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: 暂无
最后更新:2017年11月10日

iquantumer

你现在的态度决定你十年后是人物还是废物。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2022 alearner.top. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

鲁ICP备16024047号