Tl dr : It can be done, it's git's standard behaviour Update : I should clarify that by "potentially disasterous operations", I don't mean to the code itself, but actually messing around with the repo structure in git, using for instance git reset -hard or similar commands. Something similar to the OSX Time Machine. ![]() The potential to roll back everything (all the git history/state). I'm not talking about adding a tag or something to a specific point in history, but about something that would reset all the changes made in the git repo on all branches from that particular state in time. Something like a "sandbox mode", which lets you play around with your repo safely, performing potentialy disasterous operations, without the risk of messing anything up. Is there a way to tell Git "save this state of the entire local git repo, so that I can rollback everything to this point, in case things go wrong?" ![]() ![]() So, you are at a point where you know you need to do some cleanup in your git repo, potentially using rebase or other stuff that could make it really messy to undo if you do it wrong.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |