My team's source version control system is currently migrating from SVN to git.
I've been using GitHub for a while, but it's my first time building an actual git server from scratch, so I'm going through git basics.
I came across a documentation that says it's better to make the shared server a bare repository rather than a non-bare repository.
But if the server is planned to have an automated deployment system like Jenkins, it seems to me that project source files need to be there, which bare repos don't have.
So I came out with a conclusion with 2 choices, but can't seem to decide which one's better.
- Make the repository non-bare.
- Clone a non-bare repository and build from the cloned repository.
How can I set up the repository in order to enable automated deployment system?