HowTo git ignore specific lines

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
User avatar
SL5
Posts: 497
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

HowTo git ignore specific lines

07 Mar 2018, 19:11

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!
User avatar
SL5
Posts: 497
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

Re: HowTo git ignore specific lines

20 Mar 2018, 13:24

easy workaround:

is use

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

and add PRIVATE_
to gitIgnore file

**/**/PRIVATE_*

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 3 guests