You cannot fork a git project. You can clone an existing one. Clone-ing basically creates a new project, starting from another.
I would not do this by adding new functionality if I do not need 2 different applications.
If you add functionally what you want it to be merged back into main using git, you can do:
git checkout -b secondBranch
- this will create a "secondBranch" branch and also immediately send you to this branch. The next commit will be on this second server.
If you want to remove it, just do
git branch -d secondBranch
or if you decide to merge it, switch to the main / main branch and insert the second bit into it.
git branch master
- let you master
git merge secondBranch
- at this moment you will be taken to the main branch with the changes made from secondBranch merged into master
Blitzkr1eg Mar 16 2018-12-18T00: 00Z
source share