Do I ever need to run git gc on a bare repo?

As Jefromi commented on Dan’s answer, git gc should be called automatically called during “normal” use of a bare repository. I just ran git gc –aggressive on two bare, shared repositories that have been actively used; one with about 38 commits the past 3-4 weeks, and the other with about 488 commits over roughly 3 … Read more

How can I trigger garbage collection on a Git remote repository?

The remote repo should be configured to run gc as needed after a commit is made. See the documentation of gc.auto in git-gc and git-config man pages. However, a remote repo shouldn’t need all that much garbage collection, since it will rarely have dangling (unreachable) commits. These usually result from things like branch deletion and … Read more

How often should you use git-gc?

It depends mostly on how much the repository is used. With one user checking in once a day and a branch/merge/etc operation once a week you probably don’t need to run it more than once a year. With several dozen developers working on several dozen projects each checking in 2-3 times a day, you might … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)