git移除远程仓库某个文件夹

来源:互联网 发布:儿童电动牙刷价格淘宝 编辑:程序博客网 时间:2024/06/09 21:25

比如bin文件夹


it rm -r -n --cached "bin/" //-n:加上这个参数,执行命令时,是不会删除任何文件,而是展示此命令要删除的文件列表预览。git rm -r --cached  "bin/"      //最终执行命令. git commit -m" remove bin folder all file out of control"    //提交git push origin master   //提交到远程服务器
可以修改 .gitignore 文件 添加 bin/ 并提交 .gitignore 文件到远程服务器,这样就可以不对bin目录进行版本管理了。


转载地址 http://www.tuicool.com/articles/NfEzeq

0 0
原创粉丝点击