I'm trying to ignore a line from commit, I've found this question Gitignore single line, and everything works fine if I do:
git config --global filter.gitignore.clean "sed '/#gitignore$/'d"
and annotate code with:
System.out.println("SimpleLineCode"); #gitignore
But I would like to do ignore with this tag //gitignore
(because I use Java), so I've wrote:
git config --global filter.gitignore.clean "sed '///gitignore$/'d"
Of course it does not work, and do not know how to do ...