Page 1 of 1

HowTo git ignore specific lines

Posted: 07 Mar 2018, 19:11
by SL5
github allows us to ignore lines in the source code. Unfortunately I have not done this. So far only this git ignore file i used. The file .gitattributes is used for this. I know something like that from the tool WinMerge. There one can exclude lines over regular expression. That would be my favorite. Have you ever done that? Do you have an example for git? Thank you!

Re: HowTo git ignore specific lines

Posted: 20 Mar 2018, 13:24
by SL5
easy workaround:

is use

#Include *i %A_LineFile%\..\PRIVATE_wordlistNameFilter.inc.ahk

and add PRIVATE_
to gitIgnore file

**/**/PRIVATE_*