crowdsourcing an interview on git

Miroslav Suchý msuchy at redhat.com
Wed Apr 1 07:02:13 UTC 2015


On 03/31/2015 10:48 PM, Matthew Miller wrote:
> * What is your favorite pro tip for using git?

Sometimes git pull takes long time. Sometimes git start garbage collecting in situation, where I was under time pressure.
After this line in crontab I have no such problems any more:

40 3 * * * locate --regex /\\\.git\$ | while read a; do ( cd $a; git fetch --all -t; git gc --aggressive; ) done
>/dev/null 2>/dev/null

And this in .gitconfig:
  [alias]
  lol = log --graph --decorate --pretty=oneline --abbrev-commit
Is great to quickly get overview of history (credits goes to jesusr).

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the infrastructure mailing list