4 ms·
I became my company's go-to person when it came to other developers (or devlops) struggling with Git. In getting people more comfortable, I found there were two
by zbuf 6y ago
I became my company's go-to person when it came to other developers (or devlops) struggling with Git. In getting people more comfortable, I found there were two very dominant difficulties/wins for the situation you describe:
* Are you using gitk viewer?. Specifically "gitk --all". Open it, leave it open, and refresh it after running any Git command to see what you did. Stick with gitk too, don't be tempted to reach for a viewer in your favourite toolkit/webapp implementation just yet. A long time ago, too many GUI were either focused on single branch, or did not render the whole branching/merging adequately. I'm sure that's changed, but gitk is part of git, and experience with it will mean you're in a position to evaluate alternatives later.
* Erase all knowledge of "git pull" from your brain. Basically a "fetch+merge" in one step, it's like leaving a parked car in gear, but with more mess when you get it wrong. Replace it with "git fetch", followed by inspecting in gitk, and deciding if a "git merge" is what you want.
With both of these I found developers were often more developed in their understanding than they thought they were; they just needed a 'leg up'. With these their confidence and understanding improved dramatically.
- clarry 6y ago> it's like leaving a parked car in gear What, you want my car to roll off?
- tomjen3 6y agoIf you leave a manual car in gear and forget it when you start it, it will jump forward about a foot or two and then the engine will stall. I always put mine in neutral, then pull the handbrake (unless dead of winter), that way it can be turned on with no issues. I suspect that is what gp meant, but it may not work the same way on automatics.
- clarry 6y agoLeave it in gear, that keeps it from rolling off if handbrake fails. Always depress the clutch when you start. Even if you're in neutral, depressing the clutch reduces the load on the starter motor because it doesn't have to get all the mass of the transmission spinning. (This can also make the difference between starting or not if you're in cold or the battery is otherwise not doing great) There are times when it's best not to use the handbrake at all.. (let me tell you how I found out: mine is currently seized and I need to get towed, sigh)
- earthscienceman 6y agoWooah. Thank you for writing this. I know it's simple but these were really helpful tips for someone in the same position as the OP