Well that does look simple, but first of all, it doesn't really revert a commit.
Well that does look simple, but first of all, it doesn't really revert a commit. It makes a new commit to cancel out the old one, or something. Not intuitive, unexpected results if you don't know what you're doing. But the situation I got into was when I did something stupid and just wanted to undo it. Let me go back to an hour ago before I screwed up my project. That's not revert, it's reset, but reset only reverts the commit history, you really want reset --hard. And of course you need to be pointing to the right place for this to work, and there are other ways for it to go wrong. It might be hard to imagine if you're at all competent with Git, but trust me when I say you can get yourself into some very frustrating scenarios if you just Google "undo push" and blindly follow the instructions. Here's another simple scenario: I'm working on a bug, my friend fixes it first and pushes his version. I just want to pull his changes and throw away whatever I was working on. Ok, so I find this: http://stackoverflow.com/questions/1125968/force-git-to-over... Look how many different methods there are. Look how many warnings of "THIS WILL DELETE ALL UNTRACKED FILES" there are. Why is this necessary? I could rant for a while longer, but this stuff is so incredibly unfriendly and frustrating to newcomers. I don't want to think about this stuff, I just want to go back to the code.
Posted by burkaman on May 11, 2015, 5:10 AM
Tags
Related issues
- C++ is the "just here to deliver" language.
- He is not weirdly political, he has just more normal views, I know that is something hard to grasp for some tech bro.
- Of course you don't have a right to murder anyone.
- Unify Control and Container nodes, allow children to pick the behavior
- I was talking about this the other day with someone - broadly I agree with this, they're absolutely fantastic for getting a prototype so ...
- In theory you could express most things as a flowchart but the complexity of doing that quickly escalates.
Raise real-world problems, find people facing the same issue, and discuss solutions.6,500 issues0 comments
ux (EdTech)
C++ is the "just here to deliver" language.
He is not weirdly political, he has just more normal views, I know that is something hard to grasp for some tech bro.
Of course you don't have a right to murder anyone.
Unify Control and Container nodes, allow children to pick the behavior
I was talking about this the other day with someone - broadly I agree with this, they're absolutely fantastic for getting a prototype so ...
In theory you could express most things as a flowchart but the complexity of doing that quickly escalates.
It's not really hard to onboard new engineers with Scala, Clojure or even Ruby backgrounds.
Very understanding (or even no) partners is probably a large percentage of it!
Well that does look simple, but first of all, it doesn't really revert a commit.
Well that does look simple, but first of all, it doesn't really revert a commit. It makes a new commit to cancel out the old one, or something. Not intuitive, unexpected results if you don't know what you're doing. But the situation I got into was when I did something stupid and just wanted to undo it. Let me go back to an hour ago before I screwed up my project. That's not revert, it's reset, but reset only reverts the commit history, you really want reset --hard. And of course you need to be pointing to the right place for this to work, and there are other ways for it to go wrong. It might be hard to imagine if you're at all competent with Git, but trust me when I say you can get yourself into some very frustrating scenarios if you just Google "undo push" and blindly follow the instructions. Here's another simple scenario: I'm working on a bug, my friend fixes it first and pushes his version. I just want to pull his changes and throw away whatever I was working on. Ok, so I find this: http://stackoverflow.com/questions/1125968/force-git-to-over... Look how many different methods there are. Look how many warnings of "THIS WILL DELETE ALL UNTRACKED FILES" there are. Why is this necessary? I could rant for a while longer, but this stuff is so incredibly unfriendly and frustrating to newcomers. I don't want to think about this stuff, I just want to go back to the code.
Comments (0)
No comments yet. Start the discussion.