Let's say I have a simple C file:
int main(){
// commented code
return 0;
}
Can I commit this file with the commented line removed?
Let's say I have a simple C file:
int main(){
// commented code
return 0;
}
Can I commit this file with the commented line removed?
GIT is a stupid content tracker
It doesn't ignore any changes to your files even a change in a char or comments to your file
I believe you can't. When you do git commit, It will eventually commit all of the content including your comment.
You can check clean filters here. You can define your own attribute to ignore the snippet/regex in code