I have a lot of lines with # TODO
for future references. These are personal, and I'd like to not commit them along with the rest of my file when I make changes.
Is there any way to tell .gitignore (or git itself) to not include any line containing # TODO
Or as a bonus.. Not just the line, but maybe from the # TODO
to the end of line incase I have a TODO
on the same line there is code
EXAMPLE:
def destroy
# TODO Alter route (Tell git to ignore this)
@comment.destroy
end
OR:
def destroy
@comment.destroy # TODO Alter this line. (Tell git to ignore from '# TODO' onwards.
end