News for hackers. Stuff that matters.
Re:Oh shit, git: Getting myself out of bad situations by trevor-e on Monday December 18, 2017 @12:10PM (#15953176)
I think Git would be way more approachable if things were named better. A key part of Git is whether a file is untracked/unstaged/staged, yet the terminology around this is very confusing. Why aren't commands simply `git stage`, `git unstage`, `git add` (to track files), `git remove` (to untrack), `git undo`, etc? Not to mention the overloaded command names like `git checkout`, how is `git checkout -- someFile` intuitive at all?
Re:Oh shit, git: Getting myself out of bad situations by satish-setty on Monday December 18, 2017 @01:29PM (#15953933)
This is precisely one reason I like Mercurial over Git. Hg has commands which are more meaningful than those of git.
Re:Oh shit, git: Getting myself out of bad situations by dhimes on Monday December 18, 2017 @03:27PM (#15955161)
+1 hg. I see it mentioned so seldom here that I'm actually worried it may go away.
Re:Oh shit, git: Getting myself out of bad situations by omg_ketchup on Monday December 18, 2017 @12:17PM (#15953249)
Why not `git track` and `git untrack`?
Re:Oh shit, git: Getting myself out of bad situations by trevor-e on Monday December 18, 2017 @01:14PM (#15953786)
TBH I'm not sure why I left add/remove in, track/untrack is simpler and more in line with what I was saying. :)