当前位置:首页 > linux > 正文内容

git 忽略文件不起作用 .gitignore

root5年前 (2021-02-04)linux1450

git rm -r --cached . git add .  

git commit -m "update .gitignore"  



git status

查看是否是"working directory clean"

扫描二维码推送至手机访问。

版权声明:本文由一叶知秋发布,如需转载请注明出处。

本文链接:https://www.zhiqiu.top/?id=80

分享给朋友:

相关文章

ssh自动添加hostkey到know_hosts

有时后端daemon或者脚本在执行ssh连接时,会遇到以下提示:The authenticity of host 'git.sws.com (10.42.1.88)' can't be establishe...

linux 更换apt的源

sudo sed -i 's/archive.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list将archive.ubunt...

死亡进程导致在办公室莫名背锅后平反昭雪艰辛之路

死亡进程导致在办公室莫名背锅后平反昭雪艰辛之路

背景:之前就有一个在我账户名下的问题程序,但是并不是我启动的,绝对不是我启动的。但是找不到原因就莫名的背起了锅。然后默默修改了密码(其实然并卵,下面详聊原理),该机器管理员把我踢出了root组(因为没啥程序在上面)起因:今日突然发现一个进程...

python安装的时候出现python setup.py egg_info Check the logs for full command output

python安装的时候出现python setup.py egg_info Check the logs for full command output

解决yum install python2-develpip install --upgrade setuptools...

服务查看启动

服务启动、停止和重启service   xxx  start  service   xxx  stopservice   xxx ...

docker 日志查看

通过如下命令来获取容器的日志地址 docker inspect --format '{{.LogPath}}' 97069f94437bcat命令查看上述命令找到的日志地址cat /...