zoukankan
html css js c++ java
让git不再跟踪配置文件的变化
我们经常会在配置文件里留下一些敏感信息
比如数据库链接字符串的用户名和密码
如果不提交配置文件到github或者其他源码管理网站
那么你的粉丝很可能就无法正确运行你的项目,就达不到开源的目的了
那么,怎么让git在提交一次配置文件之后就不再跟踪配置文件的变化了呢
(一般第一次提交的配置文件是脱敏的)
只要这样做:
git update-index --skip-worktree [文件绝对路径]
即可
查看全文
相关阅读:
2018.4.5课堂笔记
黑白染色——封锁阳光大学
末日游戏——杨辉三角+搜索
dilworth定理+属性排序(木棍加工)
伯努利错装信封问题
zhx'code1
字符串-----KMP竟然是18禁
Presto Event Listener开发
Presto安装完成之后需要做的
Apache Calcite 论文学习笔记
原文地址:https://www.cnblogs.com/liulun/p/8151301.html
最新文章
Java反射深入浅出(一)
Maven聚合与继承的实例讲解(二)
Maven聚合与继承的实例讲解(一)
linux的命令
约瑟夫问题
java虚拟机内部介绍
for循环和迭代
IOS设计模式之四(备忘录模式,命令模式)
IOS设计模式之三(适配器模式,观察者模式)
IOS设计模式之二(门面模式,装饰器模式)
热门文章
IOS设计模式之一(MVC模式,单例模式)
iphone:自定义UIAlertView
[转]iOS UIAppearance使用详解
【转】 UIButton上使用UIEdgeInsetsMaketitle跟图片对齐
(转)设置 UILabel 和 UITextField 的 Padding 或 Insets (理解UIEdgeInsets)
【转】IOS开发小技巧
IOS 访问系统粘贴板
狼抓兔子——平面图转对偶图
终于也忍不住来写oi经历了
一道公式题——数三角形
Copyright © 2011-2022 走看看