gitreceive
gitreceive copied to clipboard
pre-receive hook for storing repo
not sure if this is outside of the scope of gitreceive - but is there any way to save repositories when they're pushed to me to specific folders? so even if the remote is set up as:
git remote add demo [email protected]:example
... I can still save the repo in a folder besides /git/example ? maybe this would be some sort of processing done in a hook?
Git receive will save the repositories in the home directory of the $GITUSER
specified during installation. You could symlink a different directory to /home/$GITUSER
so long as the receiver script is in that directory.