I would like a specific string in a specific file to be hidden every time I commit changes to that file.
Actually, I have a URL in a file that shouldn't be public in a remote repository. Is there anyway to hide it using pre-commit and post-commit hooks or something similar?
Currently I am working with a git repository but it would be nice to know how to do this with svn.
Thanks, Simão
You could keep that string in a separate file (such as a resource file, if your environment supports that), and not put that file under version control.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With