git - Master repository and local repositories in the same machine -


I'm new to Git. I have created a master repository in a Linux server using the same server 5 of every 3 users Is being done by groups. I want to make a local store for each group. And members of the group should make a local store for each of them in return, play with the material and modify the local store of the group.

How should I go about doing this?

You can copy the master repository by running

  git clone --bare / path / to / master / repository  

To create 5 different local copies of the master repository where you want to copy, in different paths 5 Want to multiply Then members of each group can run

  git clone / path / to / group_local / repository  

to make a personal copy of the local repository of their group Are there. Therefore, whenever you clone a repository, you have three "levels" of the repository: unless you do not use - bare : master, local, Personal.

option will set property of remote.origin.url clone to reference GIT origin. This means that if you drag

  git, then in the clone it will bring changes from the original repository, and if you   
  git push  

, this will push the original change from the clone. So when your group members modify their personal treasure, they can run git push and those modifications will be "uploaded" in the local repository for their group. In the clone repository, it is possible to copy a change from another repository by specifying a URL (or the name of the previously configured remote) for git pull <(except that it was originally cloned, except) / code > You can push commands in an arbitrary other repository, though there are some things for it if you are trying.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -