Skip to content

Instantly share code, notes, and snippets.

@maxmilian
Last active January 21, 2020 06:15
Show Gist options
  • Save maxmilian/beca525d8745c5f9f89d53e3264dda0e to your computer and use it in GitHub Desktop.
Save maxmilian/beca525d8745c5f9f89d53e3264dda0e to your computer and use it in GitHub Desktop.
Synology Git server

新建 repo

  • web 登入 Synology 後,使用 File Station 的 git-repo 下建立新的 repo 目錄 (例如: test)
  • 使用 ssh 登入 synology 後,切換到 test 目錄下 ( cd /volume1/git-repo/test/ ) 後,下 git --bare init 初始化 repo

clone repo

假設要 clone test 的倉庫 git clone ssh://maxmilian@your_ip_address/volume1/git-repo/test

新建/刪除帳號

  • web 登入 Synology 後,直接在控制台 - 使用者帳號操作,加入 developer 群組
  • web 登入 Synology 後,在 Git Server 勾選該使用者,允許存取
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment