Is it possible to work with a local "community" repository in Git?

2

Imagine that I have a remote repository in Github, but I would also like to replicate it to a local server, thus allowing my team to work (and share code) even without remote access.

And, for example, at the end of the day or week, a local "community" repository would be committed to the remote, official repository.

From what I've researched, it's possible to replicate a repository on my own machine and commit "locally", but only I would see those commits . I did not find anything about a local "community" repository.

Is it possible to do this with Git?

    
asked by anonymous 24.02.2015 / 19:31

1 answer

3

Somehow access will be remote. Even if remote do not leave the building where you are. Even if access is done via SSH, for example, it will be remote. So strictly local gets tricky. But I think the local term just was not well used. I understand you want it to have a remote repository but it does not depend on the internet. Otherwise I do not see how people could access your computer.

To solve this, just create a Git server. It is essentially a Git repository running in a way that remote access can be done. In a way you're creating your own GitHub, albeit in a simpler and more limited way.

"Official" documentation talks about using Git as a server ( configuration guide in Portuguese ). After it is set up correctly the repository usage becomes equal to a remote server outside your network. Of course it can be restricted to only access internally.

Some people prefer slightly more ready and complete solutions like Gitorious or GitLab or Gitolite or Gitblit or purchase the enterprise version of GitHub . And you have some other options like Indefero or SCM Manager .

    
24.02.2015 / 19:50