I have master branch https://github.com/Fivell/PHP_PROJECT/ and recently created new branch for php 5.3 https://github.com/Fivell/PHP_PROJECT/tree/php5.3
But I think It will be better to create fork instead of branch in this case.
Can anybody help with it ?
How can I create fork of my own project , than merge it with fork php5.3 and than delete branch ?
You cannot fork your own project on GitHub.
One solution would to create another account, and fork from there.
The other is a "manual fork", ie a local clone of your GitHub repo "uploaded" (
git push) to a new empty gitHub repo (but there won’t be any "pull request" link possible between the two repo)See this gist:
$ vim .git/config
The OP adds:
I replied in the comments:
There won’t be any pull request, only fetch from your "manually forked" repo directly to your local clone of your main GitHub repo.
Ie: you would add a second
remoteto your local repo, pointing to your "manual fork" on GitHubSo if you publish any modification on your second repo on GitHub (the "manual fork"), you can fetch them directly in the local clone of your original GitHub repo, merge them, test them, and finally push them back to said original repo.