Re: crowdsourcing an interview on git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure





[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux