There's no reason to keep code that is commented out in the repository. git's versioning system will retain all the development history of the file in case we need to revert the version to a previous one.
As a general rule, you should never commit code that has lines of commented-out code.
There's no reason to keep code that is commented out in the repository. git's versioning system will retain all the development history of the file in case we need to revert the version to a previous one.
As a general rule, you should never commit code that has lines of commented-out code.