Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.misc    |    General topics about computers not cover    |    21,759 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 21,572 of 21,759    |
|    Ben Collver to All    |
|    From Git To Fossil SCM (3/4)    |
|    19 Nov 25 17:11:27    |
      [continued from previous message]              +-------------------------------------------------------------------+       | fossil open --workdir my_working_folder /path/to/repository.fossil|       +-------------------------------------------------------------------+              Cloning a repository       --------------------              You can clone a repository using the command fossil clone followed by       the repository url. The url can be a web url, a ssh url, a file path,       etc.:              +-------------------------------------------------------------------+       | fossil clone https://host/repository |       +-------------------------------------------------------------------+              This command will automatically download the file repository.fossil       and it will create, at the same level, the working folder       repository_folder. If you don't want it to create the working folder       you can do it by using the command like:              +-------------------------------------------------------------------+       | fossil clone --no-open https://host/repository |       +-------------------------------------------------------------------+              Once the repository is cloned, if you want to send your commits to       the remote repository (and you have permissions for it), you should       configure inside the working folder the remote fossil repository:              +-------------------------------------------------------------------+       | fossil remote https://user@host/repository |       +-------------------------------------------------------------------+              The command above will asks you for your user's password and it will       also asks if you want to save it for future use.              Tip:              Because Fossil has this clear separation between the repository file       on one hand and the working folders on the other, I keep all the       *.fossil files inside a folder named fossils in my /home and I have       the working folders where is most appropiate in each case.              Getting Info       ------------              For getting the information about the working folder and repository       status there are some differences compared to Git, especially in the       name and use of the commands.              Viewing the timeline       --------------------              In Fossil the fossil time and fossil timeline commands are the       equivalent of Git's git log command. Here are some examples from the       one that provides less information to the one that provides more:              +-------------------------------------------------------------------+       | fossil time --oneline # similar to git log --oneline |       | fossil time |       | fossil time --medium |       | fossil time --verbose # similar to git log |       +-------------------------------------------------------------------+              Viewing changes in your working folder       --------------------------------------              To see the changes in your working folder compared to the repository       there are several commands and each one of them has different       options.              To see which files and folders are not under version control:              +-------------------------------------------------------------------+       | fossil extras |       +-------------------------------------------------------------------+              To see files that are under version control and have been modified:              +-------------------------------------------------------------------+       | fossil changes |       +-------------------------------------------------------------------+              To see a combination of the two previous commands:              +-------------------------------------------------------------------+       | fossil changes --differ |       +-------------------------------------------------------------------+              To see the working folder and repository status in a way more closely       to the output of Git's git status command:              +-------------------------------------------------------------------+       | fossil status --differ |       +-------------------------------------------------------------------+              Viewing the Diff(erences)       -------------------------              To see the differences between the contents of our files in the       working folder and what is in the repository, Fossil, like Git, has       a diff command:              +-------------------------------------------------------------------+       | fossil diff |       +-------------------------------------------------------------------+              To see the differences between a specific commit and the working       folder:              +-------------------------------------------------------------------+       | fossil diff --from 2c26dd6 # 2c26dd6 is the hashtag of the commit |       +-------------------------------------------------------------------+              To see the differences between two specific commits:              +-------------------------------------------------------------------+       | fossil diff --from 2c26dd6b69 --to cd086a1045 |       +-------------------------------------------------------------------+              Fossil's diff command doesn't show colorized diffs. Check out the Wiki       if you want colorized diffs [6]              Getting changes       ---------------              Fossil has an option called autosync that is enabled by default.       This option keeps your local repository synchronized with the remote       repository. If you have the autosync option enabled, you can get all       the changes from the remote repository (if any) with the command:              +-------------------------------------------------------------------+       | fossil update |       +-------------------------------------------------------------------+              Otherwise it would be more similar to Git's. You have to do first a       pull to get the changes and then an update for these to appear in       your working folder:              +-------------------------------------------------------------------+       | fossil pull fossil update |       +-------------------------------------------------------------------+              Commiting changes       -----------------              As Fossil does not have the staging area, the commit is much more       likely to version control systems like Subversion than Git.              If you want to make a commit with all the pending changes:              +-------------------------------------------------------------------+       | fossil commit |       +-------------------------------------------------------------------+              The command above will open an editor for you to enter the commit       message, but you can also provide the commit message as an option:              +-------------------------------------------------------------------+       | fossil commit -m "My commit message" |       +-------------------------------------------------------------------+              You can commit specific files with:              +-------------------------------------------------------------------+       | fossil commit file1 file2 |       | fossil commit file1 file2 -m "My commit message" |       +-------------------------------------------------------------------+              If you have the autosync option enabled, the commit command will also       send your changes to the remote server (if any). Otherwise you'll       have to send the changes to the remote server with the command:              +-------------------------------------------------------------------+              [continued in next message]              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca