Git: Difference between revisions
imported>Kindrobot Add information about adding git aliases |
imported>IgorM m Fixed syntax highlighting |
||
Line 9: | Line 9: | ||
Install <code>tk</code> to use the git gui: | Install <code>tk</code> to use the git gui: | ||
<syntaxhighlight> | <syntaxhighlight lang=console> | ||
git citool | $ git citool | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 69: | Line 69: | ||
Normal <code>git gc</code> should work as usual, but you should force a full garbage collect every half a year or so. <code>git gc --aggressive</code> is the command for that. For the author it did not work on the first try, since their laptop’s memory was too small and it went out of memory. According to [https://stackoverflow.com/a/4829883/1382925|this StackOverflow] answer it suffices to set some local repository config variables. | Normal <code>git gc</code> should work as usual, but you should force a full garbage collect every half a year or so. <code>git gc --aggressive</code> is the command for that. For the author it did not work on the first try, since their laptop’s memory was too small and it went out of memory. According to [https://stackoverflow.com/a/4829883/1382925|this StackOverflow] answer it suffices to set some local repository config variables. | ||
<syntaxhighlight lang=console> | |||
$ git config pack.windowMemory 2g | |||
$ git config pack.packSizeLimit 1g | |||
</syntaxhighlight> | |||
worked well on a machine with about 6–8 GB of free RAM and two processor threads, and reduced the size of the <code>nixpkgs</code> checkout from ~1.3 GB to ~0.95 GB. | worked well on a machine with about 6–8 GB of free RAM and two processor threads, and reduced the size of the <code>nixpkgs</code> checkout from ~1.3 GB to ~0.95 GB. | ||
[[Category:Applications]] | [[Category:Applications]] |