Create fork of git public repository for github

I'm just starting to use git and github and I need some advice. I want to create the fork of the git public repository (qemu-kvm in case you are interested). I plan to have a public version of the fork for github and a version for our team.

I'm sure there are many ways to fix this, but git confuses me. What I'm going to do is ...

Create a qemu-kvm repo clone on my development machine in a dedicated official branch. Allow the team to clone this repo and commit the changes to the main branch. When the main branch is stable, I would merge the code into the github branch and use it to update the code on github.

Periodically, I get changes in the official branch and merge them with my github branch as needed.

Does this sound reasonable or is there a better way to do this? Thanks Steve

+2
git github
source share
1 answer

It may work, but you need to manage a special clone in the local environment.

You can simply post the " dev " branch on your branch and ask your developer to directly click on this branch of your fork (adding developers as co-authors).

You would be responsible for cloning this GitHub fork and merging dev to master , making sure it is stable and based on the latest version of the wizard from the source repo (so reloading your main branch on top of upstream/master , a little like in My download request was merged, which do next? ").
Then you can press master on your fork and make a pull request.

+2
source share

All Articles