安装
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.
https
: https://github.com/<username>/<repo>.git
ssh
: git@github.com:<username>/<repo>.git
- Follow the Installation instructions for your operating system
- Setup Authentication
- 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.
- Move all your files from the new folder (including
- Run
git clone <your-remote-url>
in the command line wherever you want your vault to be located.
- Use the “Clone an exising remote repository” command to clone your repo into a subfolder of your vault. You then have again two choices
- 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