一、新建github库并使用git上传

首先访问https://github.com 新建自己的库

 

使用jsdelivr访问github资源

 

之后使用 git 上传到github

下载git : https://git-for-windows.github.io/

1.本地新建一个文件夹

2.进入文件夹,点击鼠标右键,选择git bash here

3.然后在窗口输入 git init 

4.复制地址 :

使用jsdelivr访问github资源

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访问github资源

使用jsdelivr访问github资源

使用jsdelivr访问github资源 

依次进入要访问的资源

使用jsdelivr访问github资源

使用 jsdelivr 访问  例 : https://cdn.jsdelivr.net/gh/yuDuChen/yuduchen@v1.2/layui/css/layui.css

https://cdn.jsdelivr.net/gh/用户/库@版本号/资源路径

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-09-14
  • 2021-11-01
  • 2021-06-04
  • 2021-09-14
  • 2021-09-27
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-01-18
  • 2021-08-02
  • 2021-08-28
相关资源
相似解决方案