I've hosted Smart HTTP GIT on my VM, what I'm unable to do is to create a fork. Is there any command or something through which I can fork my self-hosted GIT.
Why do I need to fork the repository, so that 10 developers can fork the base repository and work on their own instance, once their code is good to go they can do a pull request. Once they have made the pull request the GIT admin can check and review the code and if everything seems to be fine they that pull request will be accepted or else it will be denied.
Note: I'm not asking how to fork, I'm asking how to fork on a self-hosted GIT repository which is nothing but my remote GIT repository is on one of my VM/Server instead of Github/Bitbucket etc.
There is no "fork" in Git, only a clone on the server side (but without any "link" between the two repos)
Once you have duplicated a repo on the server side ("fork"), any pull request can be emulated by the native command "git request-pull
".
Generate a request asking your upstream project to pull changes into their tree.
The request, printed to the standard output, begins with the branch description, summarizes the changes and indicates from where they can be pulled.