gitosis

Pushing to a remote Git server using NetBeans 7.0.1

若如初见. 提交于 2019-12-11 08:34:53
问题 I have a Linux server remotely, which has GIT and Gitosis configured. The repository is at git.desytec.com/morros. The URL requires authentication because I don't want it to be viewed by others. When pushing in NetBeans, I use this URL: git@git.desytec.com:morros/.git but when I click Next, this error occurs: git@git.desytec.com:morros/.git: reject HostKey: git.desytec.com My local machine is running Windows 7. 回答1: I got the "does not support smart HTTP push" on all of my git servers. I

Gitosis and www-data

血红的双手。 提交于 2019-12-11 07:28:47
问题 I'm currently building a ubuntu (10.0.4 LTS) server on a VPS to host a WordPress based website. I've got gitosis installed to host the remote repository and what I would like to do is plugin to the post receive hook to update the WordPress theme when I git push . I'm getting a bit confused with users and permissions. As when we I run git pull the files in /var/www will be owned by the git user. Ideally I would like all files in the /var/www to be owned by the same user as I think this would

Preventing git push from sending entire repo if not up-to-date

放肆的年华 提交于 2019-12-10 21:54:49
问题 Related question: why does Git send whole repository each time push origin master The short version: When working with two Git repositories, even if 99% of the commit objects are identical, using git push to send a commit to repository B when origin is set to point to repo A causes all objects (200MB +) to be transferred. The much longer version: We have a second Git repository set up on our continuous integration server. After we have prepared our commit objects locally, instead of pushing

Git Log History

僤鯓⒐⒋嵵緔 提交于 2019-12-08 20:45:17
问题 One thing that is important with version control is knowing who made what change. If something was changed and I had no idea why the change was made, I would look in the history and ask the person who made the change. As I am exploring git, one thing that makes me a little nervous about this feature is that it seems really easy to fake. What is stopping me from putting a co-workers name/email in the git global config for user.name and user.email? When using something like gitosis/gitolite

Git hook to update various web folders based on branch pushed to remote server

天涯浪子 提交于 2019-12-08 02:12:35
问题 I am developing a web application using Gitosis (Debian Lenny) that I want to be able to push to different remote repos/locations thus allowing a "bleeding-edge", "release-candidate", & "production" version of the application with mirrored physical web directories and codebase. I would prefer each directory to have a branch of the application. So one repository, three "live" versions. I am new to Git so there's probably a better solution but what i've come up w/ so far is either finding a way

Can Gitosis enforce correct user name/email?

三世轮回 提交于 2019-12-07 14:15:43
问题 Gitosis is able to authenticate users based on public/private key pair. It is able to find out which user is currently committing. However, the user name and email is taken from the client's Git configuration ('git config user.name' etc.), which can be set to arbitrary values. Is there any way to associate user names and emails with their public keys and then make Gitosis uses these names and emails as the name and email of the committer? I do not care if I will use Gitosis or WebDAV or some

Using git post-receive hook with nginx and php-fpm environment

此生再无相见时 提交于 2019-12-06 11:06:22
问题 I have a CentOS 6 server set up with git, gitosis, nginx, and php-fpm. With our setup, nginx executes php scripts via php-fpm, which is configured on a per-site basis to run as a specific user for security purposes (i.e. not all under nginx:nginx) since we don't want the situation where if one site is compromised, all sites are compromised. Our environment works great, but, when git is involved, php-fpm creates a fundamental issue. Upon successfully running the following command locally: $

Git hook to update various web folders based on branch pushed to remote server

落爺英雄遲暮 提交于 2019-12-06 04:47:57
I am developing a web application using Gitosis (Debian Lenny) that I want to be able to push to different remote repos/locations thus allowing a "bleeding-edge", "release-candidate", & "production" version of the application with mirrored physical web directories and codebase. I would prefer each directory to have a branch of the application. So one repository, three "live" versions. I am new to Git so there's probably a better solution but what i've come up w/ so far is either finding a way to attach hooks to branches (which I haven't found) or to write a hook that will filter for which

How to include ssh private rsa key when accessing git repo via ssh (gitosis)?

家住魔仙堡 提交于 2019-12-06 03:32:44
问题 At this moment I've got one git repo added through gitosis. The manual i used is http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way I can clone it and push in it via ssh auth with private and public keys (on gentoo), but windows users which are using Git Extensions can not. SSH keys placed in $HOME/.ssh, and ssh asks for a password. Nor password, nor passphrase (from private ssh key) don't match. Redmine needs for a bare repo, so i cloned repo from gitosis on my

git clone localhost?

自作多情 提交于 2019-12-05 18:22:23
问题 I am not big into ubuntu, but I managed to set up git on my client and gitosis on the server which I am proud of. I added my local ssh public key to the authorized keys for gitosos and can clone, push, commit etc. Everything works fine, from my local machine to the server - back and forth. However since the server also serves as my webserver, I simply need to connect to the server and make a "git clone git@localhost:gitproject.git" in one of my webroot folders, but it simply doesn't work. Do