<p><pre><code> 79 git pull
74 git checkout
61 git status
50 git log
38 git push
26 git diff
20 git show -p
15 git commit --amend
14 git add -A
13 git show
13 git commit -am
12 git checkout -b
11 git branch -D
7 git cherry -v
7 git blame
5 git cp
4 git stash
4 git reset --hard
4 git commit -m
3 git rebase
3 git merge
3 git checkout --
3 git branch -d
3 git branch --set
3 git add -u
2 git tag
2 git rebase --continue
2 git cherry
2 git add -a
2 git add
1 git staus
1 git statu
1 git rebase -i
1 git commit -a
1 git commit --ammend
1 git branch -set
1 git
</code></pre>
cp is a git alias I have for cherry-pick. Pretty sure the 'git branch -set' is supposed to be 'git branch -set-upstream-to'<p>I use different terminal tabs for each repo, so this is just one of the repos I use at work.
This command doesn't work on my ubuntu 12.04 system, but I'm not quite familiar enough with bash regular expressions to see exactly where it's getting off track. The following expression starts to work for me:<p><pre><code> history | grep -o "git [a-Z]" | sort | uniq -c
</code></pre>
I get:<p><pre><code> 42 git a
9 git b
236 git c
8 git d
2 git l
13 git m
82 git p
3 git r
244 git s
</code></pre>
If I try<p><pre><code> history | grep -o "git [a-Z]{3}" | sort | uniq -c
</code></pre>
I would expect to get all of my 'git add' entries, but I get nothing. Can you see what's going wrong?