سؤال

So I am new to Mercurial. I am trying to ignore all .class files and .orig files. I am using Windows 8.1

I created a .hgignore file and put the following inside:

#this is .hgignore 
syntax: glob
*.class 
*.orig
#end of file 

When I type hg status I get

? .hgignore  

Someone said I need to save in ANSI so I opened it in notepad and saved it in ANSI format and as All Types for my type option.

I am not sure if there is a syntax problem or something else. The file .hgignore is in the same folder as the .hg folder. So the path would look like:

\P1\.hgignore 
\P1\.hg 

Any ideas?

هل كانت مفيدة؟

المحلول

By default hg status only shows new and modified files. You can use the -A switch to show all files.

Run hg help status for more details.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top