_Basics of Forking Hg
_InclusionsLibrary
On this page
Related content
- No related content found
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:
- Go to the repository that you want to fork on Bitbucket and click Fork.
Clone your new fork to your local system.
hg clone https://bitbucket.org/MY_USER/MY_REPO
- Work on the files locally.
Commit the changes to the repository.
hg commit -m "MY COMMIT MESSAGE."
Push your changes up to your remote fork on Bitbucket.
hg push https://bitbucket.org/MY_USER/MY_REPO
- Send a pull request to the owner of the original repository.
Last modified on Jun 23, 2020
Related content
- No related content found
Powered by Confluence and Scroll Viewport.