3 ms·
The one about complaining about git status “Your branch is up to date with origin/master” Not hitting the network just belies a complete misunderstanding of bot
by jtms 7y ago
The one about complaining about git status “Your branch is up to date with origin/master” Not hitting the network just belies a complete misunderstanding of both the message and distributed versioning systems in general. This message is telling you that your branch is up to date with your LOCAL tracking branch and is absolutely accurate and helpful in this regard. If you fetch and pull new diffs then it will tell you a different story. I wish people would stop complaining about git and just read the very easy to understand git book https://git-scm.com/book/en/v2 https://git-scm.com/book/en/v2 Learn your tools people!
- duckerude 7y agoIf the naively obvious meaning of a message doesn't match the actual meaning of the message then that's a usability issue, even if it's technically correct.
- toomim 7y agoThe point is that this behavior is confusing, not that the behavior isn't written down somewhere in some documentation.
- jtms 7y agoMy point is the message is not at all confusing if have a fundamental understating of a distributed system as opposed to a centralized one. Just because most people want to use git just like you would have with SVN doesn’t mean it isn’t a completely different architecture that is (admittedly) a bit difficult to grok, but far more flexible and powerful
- iamaelephant 7y agoIt is confusing, as evidenced by people frequently being confused by it.
- lolc 7y agoThis message is at odds with how most people use Git. When they talk about master, they mean remote master. Because local master is not useful in their workflow. Saying that people should learn the concept is not helpful. I know what it means and I just disregard the message as noise. Wait, I think I often reflexively write "git pull" when I read that message. So you could say it does serve some purpose.
- gbear605 7y agoIt would be better if the message said “Your branch is up to date with your local origin/master.”
- jtms 7y agoBut origin/master is obviously a remote tracking branch
- Too 7y agoWhat's not obvious is if git status does a git fetch under the hood before presenting that message, so that the message can be trusted. A good tool wouldn't print such a message without fetching first and since i assume git is a good tool i assume it presents me useful and trustworthy information. I know it doesn't, but the message IS misleading for the inexperienced. If i need to read a user manual first to understand it they might as well replace the message with some status-code written in hex.
- sinsterizme 7y agoI think you’re right when you say it’s a good idea to learn your tools, no matter if the tools provides good or bad UX. In the case of git status, I think the UX is simply bad, as evidenced by the replies and my usage of git. A text update could improve the command substantially - and perhaps a suggestion to run a git pull to update the tracking branch. I don’t think it’s reasonable to read a 456 page book on git