I have a client that wishes to have some functionality removed from a 
website that I'm building but I'm not totally convinced they won't want the 
functionality added back to the site at a later date.

Is there a way to handle this type of situation with git? Basically 
deleting code in one commit then easily finding that code again in the 
future (potentially months or years from now) to either restore or use as a 
reference for reimplementing it if the site has changed to much for it to 
be directly restored.

I realise in code I can use if an if statement, comment it out or various 
other ways to achieve this but I wanted to see if it can be handled just 
with git as retrieving previously deleted code seems like the find of thing 
a VCS should be better at handling.

Thanks for any help,

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to