一、新建github庫並使用git上傳
首先訪問https://github.com 新建自己的庫
之后使用 git 上傳到github
下載git : https://git-for-windows.github.io/
1.本地新建一個文件夾
2.進入文件夾,點擊鼠標右鍵,選擇git bash here
3.然后在窗口輸入 git init
4.復制地址 :
5.輸入 git remote add origin 加上 你剛剛復制的路徑
6.輸入 git pull origin master 命令,將倉庫pull到文件夾
7.將要上傳的文件,添加到文件夾
8.使用 git add . (. 表示所有的)
9.使用 git commit -m '添加文件內容描述'
10.使用 git push origin master 將本地倉庫上傳
二、訪問github資源
新建一個 releases
依次進入要訪問的資源
使用 jsdelivr 訪問 例 : https://cdn.jsdelivr.net/gh/yuDuChen/yuduchen@v1.2/layui/css/layui.css
https://cdn.jsdelivr.net/gh/用戶/庫@版本號/資源路徑