法鼓全集 XML 標記手冊

出自DILA Wiki
於 2013年7月31日 (三) 09:45 由 imported>Ray 所做的修訂 →‎產生 SSH Key

GitHub

安裝 Git

http://git-scm.com/

安裝 TortoiseGit

https://code.google.com/p/tortoisegit/

安裝過程會讓我們選擇「SSH Client」, 請保留預設值使用 TortoisePLink. [1]

如果已經安裝過 TortoiseGit, 那要確認一下:

  1. 程式集 => TortoiseGit => Settings => Network
  2. 確認 SSH client 是否為 C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe (也可能在 Program Files (x86) 資料夾裡)

註冊 GitHub 帳號

  1. https://github.com/ 註冊
  2. 把您的帳號通知管理者, 授予編輯權限.

產生 SSH Key

  1. 執行 程式集 => TortoiseGit => Puttygen
  2. 按「Generate」
  3. mouse 在上方任意移動, 程式會根據移動的變數產生 key, 如果 mouse 不移動, 產生進度會停下來.
  4. 產生完成後[2], 按「Save Private Key」儲存 private key, 路徑自己選, 要記得, 後面會用到.
  5. copy PuTTYKey Generator 上方的 public key (建議將此 public key 自己另外建檔儲存, 這樣如果以後要再用到, 就不必再重新產生)

設定 GitHub 裡的 SSH Key

  1. 到 GitHub 個人設定
  2. 按「Edit Your File」
  3. 按左方 「SSH Keys」
  4. 按右方「Add SSH Key」
  5. Title 可以不必輸入
  6. 將剛複製的 public key 貼到 key 欄位
  7. 按 Add Key

這個 key 是跟著你在 GitHub 中所建的帳號.

clone

做 clone

  • URL: git@github.com:ddbc/faguquanji.git
  • 「Load Putty Key」要打勾, 檔案選前面用 PuTTY Key Generator 產生、儲存的 private key.

pull

Pull 時, 「AutoLoad Putty Key」打勾

div1

@type="ms-ref"

記錄跟本書相關的手稿圖檔, ms-ref 的意思是 Manuscript References

<front>
  <div1 type="ms-ref">
    <p>
      <ref type="syms" target="SYA001812_001"/>
      <ref type="syms" target="SYA002835_001"/>
    </p>
  </div1>
</front>