'Ignore specific file line during pull/push git operations
I'm here to ask a question related to topic discussed here. In this example @Mike shown how to add pre-hook script in order to ignore Java code lines with comment "//no commit".
I've done the same thing in order to ignore .xml file lines: in particular I mark each line with this comment "<!--no commit-->" and used a pre-commit script that doesn't allow to commit if a change is made on line marked with specific comment.
Now, I want to ask to the community if it is possible to implement a pre-commit hook script that allow me to do the commit without the change made on lines marked with comment and without resetting them.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
