安装

For existing remote repository 

To clone, you have to use a remote URL. This can be one of two protocols: either https or ssh. This depends on your chosen Authentication method.
httpshttps://github.com/<username>/<repo>.git
sshgit@github.com:<username>/<repo>.git

  1. Follow the Installation instructions for your operating system
  2. Setup Authentication
  3. Git can only clone a remote repo in a new folder. Thus you have two options
    • Use the “Clone an exising remote repository” command to clone your repo into a subfolder of your vault. You then have again two choices
      • Move all your files from the new folder (including .git !) into your vault root.
      • Open your new subfolder as a new vault. You may have to install the plugin again.
    • Run git clone <your-remote-url> in the command line wherever you want your vault to be located.
  4. Read on how to best configure your .gitignore

教程

配置

打开历史提交

问题

Git is not ready

错误

Git is not ready. When all settings are correct you can configure auto backup, etc.

按 Command+P 后,输入

Reload app without saving

扩展阅读