Hello,
Is it possible in Git to ignore a specific line within a file? It would be interesting for cases where we need to register a password, in this case I need to commit the file, but I would like to ignore the line that contains the password.
Hello,
Is it possible in Git to ignore a specific line within a file? It would be interesting for cases where we need to register a password, in this case I need to commit the file, but I would like to ignore the line that contains the password.
When adding the specific file in staging , add it with:
git add -p <arquivo>
This way you can select the contiguous spaces of modifications in the file.