How to specify which SSH key to use within git for git push in order to have gitorious as a mirror?

The answer is to be found in the git reference manual. GIT_SSH If this environment variable is set then git fetch and git push will use this command instead of ssh when they need to connect to a remote system. The $GIT_SSH command will be given exactly two arguments: the username@host (or just host) from … Read more

PyPI is slow. How do I run my own server?

Do you have a shared filesystem? Because I would use pip’s cache setting. It’s pretty simple. Make a folder called pip-cache in /mnt for example. mkdir /mnt/pip-cache Then each developer would put the following line into their pip config (unix = $HOME/.pip/pip.conf, win = %HOME%\pip\pip.ini) [global] download-cache = /mnt/pip-cache It still checks PyPi, looks for … Read more

Gitlab repository mirroring

Update Dec 2016: Mirroring is suported with GitLAb EE 8.2+: see “Repository mirroring”. As commented by Xiaodong Qi: This answer can be simplified without using any command lines (just set it up on Gitlab repo management interface) Original answer (January 2013) If your remote mirror repo is a bare repo, then you can add a … Read more

Creating an official github mirror

Based on communicating with GitHub’s support team, I found that GitHub currently offers no direct mechanism for a user to mirror repositories in this fashion. However, one can ask GitHub to install this service for repositories which are part of an organization. GitHub then configures an existing repository as such a mirror and pulls from … Read more

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