Adding and committing changes with fossil
Once you've created a repository, you want to add and edit files. The fossil add command adds a new file to a repository and the fossil commit command commits changes to the repository. This is different from Git in which the add
command marks changes to be added and the commit command actually does the commit.
How to do it...
The next examples show how fossil behaves if you have not defined the EDITOR
or VISUAL
shell variables. If EDITOR
or VISUAL
are defined, fossil will use that editor instead of prompting you on the command line:
$ echo "example" >example.txt $ fossil add example.txt ADDED example.txt $ fossil commit # Enter a commit message for this check-in. Lines beginning with # are ignored. # # user: clif # tags: trunk # # ADDED example.txt $ echo "Line 2" >>example.txt $ fossil commit # Enter a commit message for this check-in. Lines beginning with # are ignored...