Search code examples
gitgit-branchforkcollaborative

Git Collaborative Development


Im Working on Collaborative projects on github many people are working on it there is a origin source and a modded source but since modded source is a fork of origin source modded i cant both have origin and modded sources as a fork so i have the modified one as fork and i want to add origin as a branch Help Please


Solution

  • git remote add original git://github.com/foo/bar.git
    git fetch original
    git checkout -b original original/master
    

    Somethat like that? This will add the original github repository as a remote to your local one and then you checkout the remotes master branch as the branch original.

    Its more or less an example. The first command is the important one. I dont know, what you want to do exactly, but with the remote added you should be able to do everything interesting.