开始使用化石 [英] getting started with fossil

查看:45
本文介绍了开始使用化石的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始接触化石.我选择化石的原因是:

  • 跨平台
  • 单个可执行文件
  • 单个存储库文件(典型扩展名为 .fossil)
  • 据说易于使用(但不是全部吗?)

我有几个问题.上下文:假设我想跟踪几个目录中每个文件的更改,恰当地命名为 dir1、dir2 等.假设我想在 U 盘上保留一个副本.假设我想在同一磁盘的另一个分区上保留一个副本,因为我在 Linux 和 Windows 分区之间来回移动.我是唯一的用户,可能无法始终访问互联网.

  1. 我想将 dir1.fossil 存储在 dir1 之外.我可以这样做吗?用户手册说明告诉我从 dir1 内部创建 dir1.fossil,这就是当前在我的设置中创建 dir1.fossil 的位置.理想情况下,我希望将 dir1.fossil、dir2.fossil 等文件一起存储在另一个目录中,例如命名为fossilreposdir 并位于根部.可能吗?

  2. 我想将 USB 闪存驱动器插入我的笔记本电脑,并以即插即用的方式从中推/拉存储库.

  3. 如果可能,我还想在不使用 USB 记忆棒的情况下跨 Windows 和 Linux 分区推送/拉取存储库.

如果设置它太头疼(对于我可怜的脑袋),我会求助于简单的来回复制粘贴 .fossil 存储库.

解决方案

  1. 是的.

  2. 是的.

  3. 你想用什么?我,我使用 dropbox 来保存我的存储库.然后每台在 dropbox 注册的机器都可以访问我所有的存储库.

<块引用>

//进入工作目录cd ../dir1//在其他地方创建仓库化石新../fossilreposdir/test.fsl//在本地工作目录中打开远程仓库化石开放../fossilreposdir/test.fsl test.fsl//添加文件化石去除//犯罪化石词

I just got started with fossil. My reasons for selecting fossil are:

  • cross-platform
  • single exectuable
  • single repository file (typical extension .fossil)
  • supposedly easy to use (but aren't they all?)

I have several questions. Context: Suppose I want to keep track of changes to every file inside several directories, aptly named dir1, dir2, etc. Suppose I want to keep a copy on a USB stick. Suppose I want to keep a copy on another partition of the same disc as I move back and forth between Linux and Windows partitions. I'm the only user and may not always have access to the internet.

  1. I would like to store dir1.fossil outside of dir1. Can I do that? The user-manual instructions tell me to create dir1.fossil from inside dir1, and that's where the dir1.fossil are currently created in my setup. Ideally I'd like my dir1.fossil, dir2.fossil, etc. files to be stored together in another directory, e.g. named fossilreposdir and located at the root. Possible?

  2. I would like to stick a usb flash drive into my laptop and push/pull repositories from it in a plug-and-play manner.

  3. If possible I would also like to push/pull repositories across my windows and linux partitions without using the usb stick.

If setting it up is too much of a headache (for my poor head), I will resort to simple copy-pasting of the .fossil repositories back and forth.

解决方案

  1. Yes.

  2. Yes.

  3. What DO you want to use? Me, I use dropbox to hold my repositories. Then every machine registered with dropbox has access to all my repositories.

// into working directory
cd ../dir1
// create repository somewhere else
fossil new ../fossilreposdir/test.fsl
// open remote repo in local working directory
fossil open ../fossilreposdir/test.fsl test.fsl
// add files
fossil addremove
// commit
fossil ci

这篇关于开始使用化石的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆