threads / discuss / 11362

more than 20 commands in everyday.txt

Subject: more than 20 commands in everyday.txt

## tl;dr

3 messages between Dec 19, 2007 and Dec 20, 2007.

replies: 2people: 3as markdown or json

Miklos Vajna· Dec 19, 2007, 22:56 UTC · lore
hi,

this might seem to be a bit bikesheding, but i hope it isn't. today i teched git to someone who never used any scm so far. i showed him the "everyday with git" document, as i think it's a great start for newbies. actually i read it once but it was in the past, now i did it again and i think there are some commands listed there which is not something we use "every day". of course it may be only me, that's why i ask. here are the commands i rarely use and are in everyday.txt:

- git-prune and git-repack: usually i use git-gc only. maybe prune and
  repack could be removed from everyday.txt?
- git-show-branch: what about mentioning gitk instead? i think it's much
  more used - compared to git-show-branch

what do you think about this? maybe i'm wrong, but if i'm right, then i would provide a patch to update everyday.txt according to these suggestions.

thanks,
- VMiklos
Jakub Narebski· Dec 19, 2007, 23:23 UTC · re: Miklos Vajna · lore

Re: more than 20 commands in everyday.txt

Miklos Vajna <vmiklos@frugalware.org> writes:
Show 10 quoted lines
> this might seem to be a bit bikesheding, but i hope it isn't. today i
> teched git to someone who never used any scm so far. i showed him the
> "everyday with git" document, as i think it's a great start for newbies.
> actually i read it once but it was in the past, now i did it again and i
> think there are some commands listed there which is not something we use
> "every day". of course it may be only me, that's why i ask. here are the
> commands i rarely use and are in everyday.txt:
> 
> - git-prune and git-repack: usually i use git-gc only. maybe prune and
>   repack could be removed from everyday.txt?

I agree that git-repack should be removed (there is git-gc), and git-prune should be replaced by mentioning --prune option to git-gc. This document is for newbies, and they shouldn't need to run anything other than git-gc.

Besides with new enough git the number of generated loose objects
should be greatly reduced: git now produces (small) packs if
possible.
 
I'm not sure if mentioning git-fsck at all, or at least this early is
a good idea for introductory tutorial. Running git-fsck should be
rare, very rare.
> - git-show-branch: what about mentioning gitk instead? i think it's much
>   more used - compared to git-show-branch

I would replace git-show-branch by git-show as command to see where you are. and add gitk (which has now manpage) to view history. git-show-branch output is a bit cryptic...

Perhaps we could add git-reflog / "git log -g" somewhere around?
> what do you think about this? maybe i'm wrong, but if i'm right, then i
> would provide a patch to update everyday.txt according to these
> suggestions.
I'd like this. At least the first one is unambiguous.
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Junio C Hamano· Dec 20, 2007, 00:15 UTC · re: Miklos Vajna · lore

Re: more than 20 commands in everyday.txt

Miklos Vajna <vmiklos@frugalware.org> writes:
Show 12 quoted lines
> "every day". of course it may be only me, that's why i ask. here are the
> commands i rarely use and are in everyday.txt:
>
> - git-prune and git-repack: usually i use git-gc only. maybe prune and
>   repack could be removed from everyday.txt?
>
> - git-show-branch: what about mentioning gitk instead? i think it's much
>   more used - compared to git-show-branch
>
> what do you think about this? maybe i'm wrong, but if i'm right, then i
> would provide a patch to update everyday.txt according to these
> suggestions.

I think you would probably get unanimous yes for the former (I don't use gc myself but "repack -a -d" or "repack -a -d -f" regularly, though --- I am old fashioned and do not mind being counted as an oddball).

For the latter it all depends on whether you are in windowed environment (I usually don't).

← back to recent threads