Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to cache Credentials

Code Block
language
languagebash
themeEmacsbash
git config credential.helper store

 


git config --global push.default simple
git config --global user.email you@example.com


Update Repository

Code Block
languagebash
themeEmacs
languagetitlebashpush.bat
git add --all && git commit -m "$1%1" && git push

Clean up Git and Compact

Info

The equivalent of "git gc --aggressive" - but done *properly* - is to do (overnight) something like

   git repack -a -d --depth=250 --window=250

where that depth thing is just about how deep the delta chains can be (make them longer for old history - it's worth the space overhead), and the window thing is about how big an object window we want each delta candidate to scan.

And here, you might well want to add the "-f" flag (which is the "drop all old deltas", since you now are actually trying to make sure that this one actually finds good candidates.

Source: http://gcc.gnu.org/ml/gcc/2007-12/msg00165.html


Cleanup

Code Block
languagebash
themeEmacs
git repack -a -d -f --depth=250 --window=250

Compact

Code Block
languagebash
themeEmacs
git gc --aggressive --prune