Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I recently started using Gitkraken which allows you to pull changes WITHOUT needing to commit locally first because it uses stashes. It basically does the same option. Why can’t git be smart like that?

This is not being smart, this is trying to be too clever for one's own good. Git does what it does because it wants you to know what might happen and to decide explicitly.

If I do a 'git pull' without remembering that I was doing something and that just goes through and stash my changes automatically then I have lost the exact state I was working in and I need to work to recover it. Now, on the other hand if git stops and tell me that I have changes pending then I can think and decide. It only takes a few seconds.

Trying to automate too much can be a false economy.



Ok I agree that yes you might be worried about current state but generally that’s not something I ever experience whether that’s a solo repo or a team repo. Making some basically fake WIP commit just to keep in sync with the changes is ridiculous to me.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: