Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add #*# glob to .gitignore?

Tags:

git

gitignore

I want to add emacs autosave files to my .gitignore with the glob #*# but of course, lines starting with a hash are comment lines.

How can I get this into my .gitignore without it being treated as a comment?

like image 850
Steve Folly Avatar asked Feb 05 '10 19:02

Steve Folly


People also ask

Is ADD different from ADHD?

ADHD is the official, medical term for the condition — regardless of whether a patient demonstrates symptoms of hyperactivity. ADD is a now-outdated term that is typically used to describe inattentive-type ADHD, which has symptoms including disorganization, lack of focus, and forgetfulness.

What is ADD in a person?

What Is ADD (Attention Deficit Disorder)? ADD (attention deficit disorder) is the term commonly used to describe a neurological condition with symptoms of inattention, distractibility, and poor working memory.


1 Answers

Did you try

\#*# 

Since 1.6.2, \ should be supported in .gitignore (see this patch)

To be precise, 1.6.2.1 (March 2009)

.gitignore learned to handle backslash as a quoting mechanism for comment introduction character "#".

like image 93
VonC Avatar answered Oct 16 '22 04:10

VonC