# more than 20 commands in everyday.txt

3 messages from 2007-12-19 to 2007-12-20. Participants: Miklos Vajna, Jakub Narebski, Junio C Hamano.
Thread: https://gitlist.dev/t/11362

## Miklos Vajna, 2007-12-19 22:56

Subject: more than 20 commands in everyday.txt
Message-ID: <20071219225618.GA7378@genesis.frugalware.org>
URL: https://gitlist.dev/e/20071219225618.GA7378%40genesis.frugalware.org

```
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, 2007-12-19 23:23

Subject: Re: more than 20 commands in everyday.txt
Message-ID: <m34peep8vc.fsf@roke.D-201>
URL: https://gitlist.dev/e/m34peep8vc.fsf%40roke.D-201
In-Reply-To: <20071219225618.GA7378@genesis.frugalware.org>

```
Miklos Vajna <vmiklos@frugalware.org> writes:

> 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, 2007-12-20 00:15

Subject: Re: more than 20 commands in everyday.txt
Message-ID: <7vejdite4x.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vejdite4x.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <20071219225618.GA7378@genesis.frugalware.org>

```
Miklos Vajna <vmiklos@frugalware.org> writes:

> "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).

```
