- To create a temporary fork and merge it back into an existing branch, you must first check out the branch you intend to work on:
$ fossil checkout trunk
- Now you can edit and test. When you're satisfied with the new code, commit the new code onto a new branch. The --branch option creates a new branch if necessary and sets your current branch to the new branch:
$ fossil commit --branch new_logic
- After the code has been tested and verified, you can merge it back into the appropriate branch by performing a checkout of the branch you want to merge into, then invoke the fossil merge command to schedule the merge, and finally commit the merge:
$ fossil checkout trunk
$ fossil merge new_logic
$ fossil commit
- Fossil ...