_Basics of Forking Hg

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Forking is a way for you to create an exact copy of a repository at a specific point, and take it from there. This is particularly useful if you have reader permissions for the repository but not writer permissions, and if you want to do some major development work that you may or may not later merge back into the repository.

Here is the basic workflow:

  1. Go to the repository that you want to fork on Bitbucket and click Fork.
  2. Clone your new fork to your local system.

    hg clone https://bitbucket.org/MY_USER/MY_REPO
    
  3. Work on the files locally.
  4. Commit the changes to the repository.

    hg commit -m "MY COMMIT MESSAGE."
    
  5. Push your changes up to your remote fork on Bitbucket.

    hg push https://bitbucket.org/MY_USER/MY_REPO
    
  6. Send a pull request to the owner of the original repository.
Last modified on Jun 23, 2020

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.