Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Best way to learn git. Screw up your repo not knowing what you're doing, then struggle to fix it, give up, delete and clone again, then add what you did to screw it up to the list of things that screws it up.
-
capnsoup2438y@vinaysshenoy I wish there were a meta-version control system on top of git that let you track and undo changes made to your git repository.
It could be implemented invisibly as a local-only git repository holding your code's git repository, and each git command you give is passed to the inner repository and tracked as an individual commit in the outer.
Input a git command that fucked up your repository? No big deal, revert the last command. Input many commands and messed up your repository? Revert them since it went off the rails and then try again. I doubt we could cleanly do cherry-picks and merges, but being able to move back and forth through the command history might be good enough.
It's just always bugged me that we have all this stuff tracking the changes I make to code but nothing tracking the changes I make to the stuff tracking the changes I make to code. A simple undo command would make a world of difference for git newbies. I'm surprised it doesn't already exist. :\
Related Rants
Next time someone asks me to teach them Git, my reaction would be this.
undefined
stop it already
annoying
learn yourself
github