As with the "import" command, the --git option is not required
since the git-fast-export file format is currently the only VCS interchange
format that Fossil will generate. However,
future versions of Fossil might add the ability to generate other
VCS interchange formats, and so for compatibility, the use of the --git
option recommended.
An anonymous user sends this comment:
<blockquote>
The main Fossil branch is called "trunk", while the main git branch iscalled "master". After you've exported your FOSSIL repo to git, you won't see any files and gitk will complain about a missing "HEAD". You can resolve this problem by merging "trunk" with "master"(first verify using git status that you are on the "master" branch): <tt>git merge trunk</tt>
</blockquote>

As with the "import" command, the --git option is not required
since the git-fast-export file format is currently the only VCS interchange
format that Fossil will generate. However,
future versions of Fossil might add the ability to generate other
VCS interchange formats, and so for compatibility, the use of the --git
option recommended.
<h2>Bidirectional Synchronization</h2>Fossil also has the ability to synchronize with a Git repository via repeatedimports and/or exports. To do this, it uses marks files to store a record ofartifacts which are known by both Git and Fossil to exist at a given point intime.To illustrate, consider the example of a remote Fossil repository that auser wants to import into a local Git repository. First, the user would clonethe remote repository and import it into a new Git repository:
<blockquote><pre>fossil clone /path/to/remote/repo.fossil repo.fossilmkdir repocd repofossil open ../repo.fossilmkdir ../repo.gitcd ../repo.gitgit init .fossil export --git --export-marks ../repo/fossil.marks \ ../repo.fossil | git fast-import \ --export-marks=../repo/git.marks</pre></blockquote>
Once the import has completed, the user would need to <tt>git checkouttrunk</tt>. At any point after this, new changes can be imported from theremote Fossil repository:<blockquote><pre>cd ../repofossil pullcd ../repo.gitfossil export --git --import-marks ../repo/fossil.marks \ --export-marks ../repo/fossil.marks \ ../repo.fossil | git fast-import \ --import-marks=../repo/git.marks \ --export-marks=../repo/git.marks</pre></blockquote>Changes in the Git repository can be exported to the Fossil repository and thenpushed to the remote:<blockquote><pre>git fast-export --import-marks=../repo/git.marks \ --export-marks=../repo/git.marks --all | fossil import --git \ --incremental --import-marks ../repo/fossil.marks \ --export-marks ../repo/fossil.marks ../repo.fossilcd ../repofossil push</pre></blockquote>

This page was generated in about
0.008s by
Fossil 2.8 [246f249e5a] 2019-01-21 20:07:41