Re: best git practices, was Re: Git User's Survey 2007 unfinished summary continued
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 22, 2007, 13:38 UTC
- Message-ID
- <Pine.LNX.4.64.0710221428390.25221@racer.site>
- In-Reply-To
- <ED965042-27DE-450B-96CB-00D27000FAF6@wincent.com>
Hi,
On Mon, 22 Oct 2007, Wincent Colaiuta wrote:
Show 6 quoted lines
> El 22/10/2007, a las 13:04, Johannes Schindelin escribi?: > > > So once again, what operations involving git do people use regularly? > > Here are my top ten commands, sorted by the number of times they appear > in my ~/.bash_history:
Thanks. That's a really good idea. I did the same, and it turns out that my list was wrong:
68 log
50 fetch
36 show
33 diff
19 grep
19 commit
14 ps (my alias which runs -p status)
10 config
8 rebase
8 pushEverybody who wants to find out the same: this is how I did it:
cat .bash_history | tr ";" "\\n" | sed -n "s/^ *git[- ]\([^ ]*\).*$/\1/p" | sort | uniq -c | sort -r -n
One thing that I realised by looking at my list: It probably makes more sense teaching people about "fetch" in the beginning, teach other parts about git, and only then "push".
We tend to teach people about "fetch" and "push" at the same time, but this is not consistent with any workflow.
Ciao, Dscho