TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Giteveryday – A useful minimum set of commands for Everyday Git

114 pointsby ymseover 8 years ago

5 comments

libeclipseover 8 years ago
Wow, a man page that is actually readable and understandable.<p>I&#x27;ve been using Linux for years, and never once have I seriously looked at a man page. One of the more useless pieces of advice Linux beginners are given is to `man [tool]`. The documentation often has tonnes of useless information and no examples. It&#x27;s frustrating, and it&#x27;s also why projects like tldr[0] have gotten so popular.<p>But, the page linked in the OP is actually brilliant. It&#x27;s easy to read, has examples, compartmentalises into sections that are relevant to different people. It&#x27;s a step in the right direction.<p>Note: I&#x27;m not saying there aren&#x27;t other pages like OP. There probably are, but the vast majority are not.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;tldr-pages&#x2F;tldr" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tldr-pages&#x2F;tldr</a>
评论 #12829282 未加载
评论 #12829854 未加载
评论 #12829495 未加载
评论 #12829122 未加载
评论 #12830848 未加载
评论 #12829165 未加载
评论 #12829219 未加载
评论 #12830662 未加载
评论 #12829704 未加载
评论 #12831449 未加载
评论 #12829512 未加载
erikbover 8 years ago
I love that they try to make it assessible. But I disagree with that it would be an acceptable goal in git just to understand a subset of it. You need to understand nearly everything, even the internals. Only then it can really become useful to you.<p>The mistake the community made is putting git on the throne of version control. It&#x27;s not. It&#x27;s a tool for experts that can do a lot for you if you know how to use it. But to achieve that it pays the price of not really being assessible.<p>Now that it&#x27;s in its position, the best thing you can do is to learn it. There is the git book. Read it. Annoying, I know. But that&#x27;s the gameplan. Not doing it is just dragging out the inevitable.
评论 #12829608 未加载
评论 #12830687 未加载
评论 #12830395 未加载
guard-of-terraover 8 years ago
Both merge and rebase, but no cherry-pick. Goodbye then, I guess.<p>I&#x27;ve seen a dozen of those tools wishing to &quot;simplify&quot; git and they all fail my workflow, which is pretty common I guess, team git with central server and source control.<p>What I use:<p><pre><code> git push with target git fetch git checkout git cherry-pick git reflog git log, status, diff obviously.</code></pre>
评论 #12829749 未加载
评论 #12829641 未加载
user5994461over 8 years ago
Useful commands for everyday GitHub usage:<p># apt-get remove git<p># apt-get install svn<p>Then use svn. You can receive and send code to GitHub. GitHub is fully svn compatible =)<p>That can be especially handy for non-tech folks who would have an impossible time with git.
captn3m0over 8 years ago
This is my favorite documentation link I give to others when teaching git.
评论 #12830956 未加载