Allow remote pushes to a checked out repository
In the remote repository you are planing on pushing to, run the following:
git config receive.denycurrentbranch ignore
Then download the post-update file and unzip it. Now copy this file to your .git/hooks/ folder and make it executable.
wget http://wiki.mattrude.com/images/d/de/Post-update.zip unzip Post-update.zip rm -rf Post-update.zip chmod 775 post-update mv post-update .git/hooks/post-update
You should now be able to remotely push to this repository without errors.
|This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.|
Click on a date/time to view the file as it appeared at that time.
|current||00:10, 4 May 2010||(1 KB)||Matt|
- You cannot overwrite this file.