在.gitignore中的评论? [英] Comments in .gitignore?

查看:182
本文介绍了在.gitignore中的评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以在 .gitignore 文件中撰写评论吗?

Can you write comments in a .gitignore file?

如果是这样,

推荐答案

是的,你可以把一个评论在那里。但他们必须从一行的开头开始。

Yes, you may put comments in there. They however must start at the beginning of a line.

cf。 http://git-scm.com/book/ en / Git-Basics-Recording-Changes-to-the-Repository#Ignoring-Files


您可以放入.gitignore文件如下:

- 忽略空行或以#开头的行。

[...]

The rules for the patterns you can put in the .gitignore file are as follows:
- Blank lines or lines starting with # are ignored.
[…]

注释字符,例如:

# no .a files
*.a

这篇关于在.gitignore中的评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆