1 Star 0 Fork 0

林星/sy-git-sync-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
LGPL-3.0

GIT同步插件

English

GIT同步插件是一个由 xstarling 开发的用于本地文件和GITHUB、GITEE代码仓库平台进行数据同步的插件。

更新日志

历史版本更新

当前版本更新

  1. 修复在浏览器或docker部署环境下,第一次同步数据报网络连接失败问题

功能列表

功能列表:点击查看

  • 🚧大文件同步(开发中)
    • 🚀将git仓库和百度网盘、阿里网盘等结合起来,实现大文件上传同步
  • 🚧功能菜单
    • 🚀同步范围:

      • 👉工作空间:工作空间中,重要的数据均会被同步到git仓库
      • 👉数据目录(data目录):工作空间中,data目录下存放的数据文件会被同步到git仓库
      • 👉笔记文件:工作空间中,data目录的的思源笔记的文件和asset图片资源文件
    • 🚀同步策略:

      • 👉自动同步:系统自动的同步策略实现文件对比同步
      • 👉手动同步:弹框允许用户自己手动【云端覆盖本地】、【本地覆盖云端】,并勾选强制覆盖还是非强制覆盖
      • 👉云端覆盖本地:非强制覆盖模式,从远端覆盖本地,若文档冲突会生成冲突文档(若勾选了生成冲突文档选项,否则弹框提示)
      • 👉本地覆盖云端:非强制覆盖模式,从本地覆盖远端,若文档冲突会生成冲突文档(若勾选了生成冲突文档选项,否则弹框提示)
    • 🚀笔记格式:

      • 👉思源笔记:同步到远端仓库的文件为思源格式的笔记(仅笔记文件,其他文件不支持)
      • 👉markdown:同步到远端仓库的文件为markdown格式的笔记(仅笔记文件,其他文件不支持)
    • 🚀同步模式:

      • 👉自动同步:会根据设置界面中设定的时间间隔,定时同步数据到git仓库
      • 👉手动同步:仅在系统启动的时候会同步一次,系统关闭时不会触发同步
      • 👉完全手动同步:在系统启动和系统关闭时均不会触发同步,需要手动点击【开始同步】按钮才会同步
    • 🚀同步历史:

      • 👉本地提交:选择后,系统会查询截止到本机设备上次提交之前的远端git仓库的所有提交记录
      • 👉远端提交:选择后,系统会查询截止到现在,远端git仓库的所有提交记录
      • 👉搜索文件:用户可以根据筛选的笔记本,文件ID或路径,时间范围来搜索包含对应文件的提交记录
      • 👉提交节点:鼠标移动到侧边栏的提交记录中的提交节点上,系统会提示提交的摘要信息
      • 👉提交文件:点击【提交节点】后,【同步历史】面板的右侧会展示提交节点的文件列表
      • 👉文件对比:点击【提交文件】后,系统会打开文件对比面板,同时展示提交节点的文件内容和本地同名的文件内容,方便用户对比文件内容的差异
      • 👉回滚文件:提交文件列表中,有个【⤴︎】,点击后,提交记录中的文件会被下载到本地,并且覆盖本地的文件内容
      • 👉下载文件:提交文件列表中,有个【↓】,点击后,提交记录中的文件会被下载到本地,并且右侧弹框会提示下载的路径
  • 🚧设置界面
    • 🚀用户信息:包括【git仓库平台】、【git仓库地址】、【git仓库名称】、【git仓库分支名】、【git平台用户名】、【邮箱】,这些信息用户根据自己平台信息填写正确完整后,插件系统才可以使用
    • 🚀忽略文件:用户将不需要同步的文件的路径或文件名填写这里,系统同步时会自动忽略相关文件
    • 🚀令牌/SSH: 用户登录自己的github或gitee仓库,生成自己的token,用于系统远程访问git仓库
    • 🚀同步冲突时生成冲突文档:
    • 🚀同步范围:见【功能菜单】-> 【同步范围】
    • 🚀同步模式:见【功能菜单】-> 【同步模式】
    • 🚀同步间隔:用户设定【自动同步】时,系统同步的时间间隔
    • 🚀上次提交SHA值:展示用户上次提交的记录的哈希值,不可修改
    • 🚀上次提交时间:展示用户在本机上次提交的时间,不可修改

使用说明

详细使用说明请移步:GIT同步插件使用说明

注意事项

GIT同步插件-免责声明
本软件(以下简称“本软件”)由个人开发,旨在为用户提供笔记数据同步功能。使用本软件即表示您已阅读、理解并同意本免责声明的全部内容。

  • 💻1. 数据安全

    • 🚀由于本插件为个人开发,系统测试可能有限,建议用户启用思源笔记的快照功能或定期备份数据,以防数据丢失。
    • 🚀希望用户应理解并接受,使用本插件可能存在不可预见的风险,如:数据丢失、损坏或同步错误。在适用法律允许的范围内,请用户用户应自行评估使用风险。
  • 💻2. 隐私与权限

    • 🚀本软件不会主动收集、存储或共享用户的个人信息,所有数据处理均在用户设备本地或用户授权的 Git 代码仓库中进行。
    • 🚀 用户应妥善管理自己的 Git 账户、API 令牌(Token)及相关凭据,并对其数据安全和访问权限负责。
  • 💻3. 使用风险

    • 🚀 用户须自行承担使用本软件的风险,开发者不对因使用本软件引发的任何直接或间接损失承担责任,包括但不限于数据丢失、账户封禁、设备损坏或第三方责任等。
  • 💻4. 其他

项目管理

  1. 功能列表:点击查看
  2. 使用说明:点击查看
  3. 免责声明:点击查看
  4. 开发进度:点击查看
  5. 反馈沟通:👥思源-git同步插件反馈群(QQ群:1015180920)
  6. 常见问题答疑:FAQ文档
GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License. "The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version". The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version. The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. b) Accompany the Combined Work with a copy of the GNU GPL and this license document. c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document. d) Do one of the following: 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.) 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.

简介

思源笔记的GIT同步插件 展开 收起
README
LGPL-3.0
取消

发行版 (18)

全部

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xstarling/sy-git-sync-plugin.git
git@gitee.com:xstarling/sy-git-sync-plugin.git
xstarling
sy-git-sync-plugin
sy-git-sync-plugin
main

搜索帮助