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

Asked

Viewed 965 times

3

Imagine I have a remote repository on Github, but I’d also like to replicate it on 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 commit would be made from this local "community" repository to the official, remote 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 these mine commits. I couldn’t find anything about a local "community repository".

You can do this with Git?

  • As far as I know you can install a git server on some machine and commit to it and I also believe that after taking it and sending it to github; Here in the company we have a git installed on the server but we don’t use github yet......

  • It’s basically what the colleague said above, you install the GIT server on the server and you feed it like you’re doing it for git and after that server goes up to github for example in the same way, I’m sorry I don’t have more technical details but the logic is this.

1 answer

4


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

To solve this simply create a Git server. It’s essentially a Git repository running in a way that remote access can be done. In a way you are creating your own Github, yet in a simpler and more limited way.

The "official" documentation talks about the use of Git as server (configuration guide in English). After it is properly configured the use of the repository is equal to a remote server outside your network. Of course it can be restricted to access only internally.

Some people prefer solutions a little more ready and complete as the Gitorious or Gitlab or Gitolite or Gitblit or even buy the Enterprise version of Github. And there are also some other options like the Helpless or SCM Manager.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.