Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:07:46+00:00 2026-06-04T13:07:46+00:00

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

  • 0

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 ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:07:47+00:00Added an answer on June 4, 2026 at 1:07 pm

    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:

    Let’s assume we have an existing project called ‘foo’ and we want to create a fork called ‘bar’.

    First, create a new project on GitHub called ‘bar’.

    Next, clone foo using the name ‘bar’:

    $ git clone git@github.com:YOURNAME/foo.git bar
    $ cd bar
    

    Next, edit your Git config file and replace the origin URL with your new URL:

    $ vim .git/config

    Add your original repo as an upstream source:

    $ git remote add upstream git@github.com:YOURNAME/foo.git
    

    Finally, push your new repository up to GitHub:

    $ git push -u origin master
    

    Now you can push/pull from your new repo (bar) as expected.
    You should also be able to merge upstream changes using the following command:

    $ git fetch upstream
    $ git merge upstream/master
    

    The OP adds:

    what about opportunity to create pull requests from new fork to current master ? Any edit ?

    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 remote to your local repo, pointing to your "manual fork" on GitHub

    So 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the git-new-workdir script present in contrib section of git's codebase: https://github.com/git/git/tree/master/contrib/workdir to
I have a remote repository http://github.com/fernandezpablo85/Test This repo has a master branch, but it's
I have master branch of the project. Then I want to add a new
I have a master branch and a version2 branch in github. From the command
I have these two github repos, on both of which I'm an admin: https://github.com/ripper234/osqa
I'm new to Git and a bit confused. I have a Master branch and
I have a master branch, and another_branch with twice as many files in it.
I have a 'master' branch and several topic branches. Assume that the master branch
Given I have a master branch and a other branch. In the other branch
Somehow my master and my origin/master branch have diverged. I actually don't want them

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.