我可以忽略gitignore中文件的某些行吗?

时间:2018-07-12 16:37:46

标签: git gitignore

我有一个很长的配置文件,像这样:

// /myProject/conf/config.ini

[version]
app_name                       =  myapp
app_mode                       =  product     ; debug | product
v                              =  1

[paths]
website                        =   http://localhost
domain_name                    =   localhost  ; 
base_url                       =   /myweb/
images_path                    =   C:\\xampp\\htdocs\\myweb\\img\\
attached_file_path             =   C:\\xampp\\htdocs\\myweb\\attached_files\\

----------

[upload_limitation_values]
max_avatar_size                =   2  ; MB
max_uploaded_image_size        =   3  ; MB
max_uploaded_file_size         =   4  ; MB

[emails]
ltk_email_pr_username          =   "pr@lamtakam.com"
ltk_email_pr_password          =   "mohandesSajad1"

[times]
login_alive_time               =   1  ; day
.
.
.

我需要告诉git,忽略该文件的前14行。或忽略该文件,直到----------为止。是否可以做这样的事情?

0 个答案:

没有答案