As I read on git documentation bare repositories are good for sharing and non-bare repositories are good for developing.
I'm setting up a development server which should provide SCM, Jenkins, and serve webpages to do some manual testing.
To provide SCM I use GOGS which creates bare repos to share between developers, I need that these bare repos somehow get hardlinked to non-bare repos on the apache folder (usually /var/www/http/
) and mimic all the changes on the bare repo automatically.
Is it possible?
That is generally done by a post-receive hook set in your bare repo managed by GOGS.
That script would be:
Any commit pushed to those bare repo will be visible in your web site.