Giter Club home page Giter Club logo

notegitsync-dotnet's Introduction

C#代码已停止维护,请参考Java版本

NoteGitSync

Multi-host Git synchronization of personal notes based on C #, designed to achieve automatic note synchronization between companies and PCs.

原理

使用FileSystemWatcher来监控除.git外的文件夹是否有变动。如果有变动则执行OnFileChanged方法通过AsyncAutoResetEvent来和CommitThread进行协同操作。

Git操作

  1. 把工作区的修改添加到暂存区,然后提交到本地库。
  2. 拉取远程仓库到本地。
  3. 提交本地库到远程库。

使用方式

  1. 先在GitHub上创建一个仓库,然后在本地需要同步的文件夹下进行Git的初始化、设置远程仓库等操作,保证能连上远程仓库。
  2. 如果仓库不为空,则先拉取仓库中的内容到本地。
  3. 如果是本地运行cs代码,在运行之前先修改App.config中的配置信息。如果是下载的zip包,先解压文件,然后修改NoteGitSync文件中note.dll.config文件的配置信息。配置完成后,双击note.exe运行即可。
  4. 运行后就可以自动提交指定文件夹下的修改到远程仓库了。

notegitsync-dotnet's People

Contributors

wulicjk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.