Tldr: Let's document! git edition

Created on 30 Mar 2020  路  6Comments  路  Source: tldr-pages/tldr

For those not in the know, tldr-pages is about more than just commands. Those commands that are too expansive to fit on 1 page often have multiple subcommands - which we can document on their own pages. For example, try these:

tldr git merge
tldr git add
tldr ip address

In the case of git, it has quite a number of subcommands. Let's document them all!

  • [x] git am
  • [x] git apply
  • [x] git archive
  • [x] git bundle
  • [x] git cherry
  • [x] git describe
  • [x] git difftool
  • [x] git fsck
  • [x] git help
  • [x] git ignore
  • [x] git instaweb
  • [x] git mergetool
  • [x] git notes
  • [ ] git range-diff
  • [x] git repack
  • [x] git replace
  • [x] git request-pull
  • [x] git send-email
  • [x] git show-branch
  • [x] git stage
  • git whatchanged
help wanted new command

Most helpful comment

Not sure if git-gitk is needed, as it's really just linking to gitk, which exists.

Also, the last four items (replace, request-pull, send-email, show-branch) are listed twice.

All 6 comments

I really the "Let's document them all!".

Just one question, are translations also included in this "challenge"? 馃檲馃

Lol, if you'd like to join in and translate them, that'd be great @ivanhercaz! I only know English though, so I can't really participate in the translations department :P

These don't seem necessary:

  1. citool: citool is a default alias to gui citool which starts git-gui in a particular mode. That's literally it.

  2. whatchanged: From git-whatchanged(1):

    New users are encouraged to use git-log(1) instead. [...] The command is kept primarily for historical reasons

  3. request-pull has one specific usage, which is explained in the very short man page.

Also remote-keybase is not part of git, you may have it from a third party.

Thanks, @jn64 - I'll update the list. I just took all the subcommands from the bash autocompletion list - -I haven't yet had time to check them all :P

  • whatchanged: agreed - this doesn't seem necessary.
  • request-pull: It might be short, but regular commands such as arch and nproc still have tldr pages, so I think this is fine.
  • citool: Hrm - my machine doesn't seem to even have that alias anymore. Either way, I think it's best to avoid documenting aliases if possible and stick to the canonical names unless there's a good reason.

Not sure if git-gitk is needed, as it's really just linking to gitk, which exists.

Also, the last four items (replace, request-pull, send-email, show-branch) are listed twice.

@Alison-Li @samuel-w @jn64 only one more -- git range-diff. Any of you feel up to adding it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pascaliske picture pascaliske  路  3Comments

endearingyoungcharms picture endearingyoungcharms  路  3Comments

mikerouxfr picture mikerouxfr  路  3Comments

kelthuzadx picture kelthuzadx  路  3Comments

dikarel picture dikarel  路  3Comments