Skip to content

judongli/-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

在线简历

通过 Git + GitHub Pages 实现的在线简历,每次推送更新后自动刷新页面内容。

本地预览

用浏览器直接打开 index.html,或用本地服务器:

# Python 3
python -m http.server 8000

# 然后访问 http://localhost:8000

部署到 GitHub Pages

1. 在 GitHub 创建仓库

  1. 登录 GitHub
  2. 点击右上角 +New repository
  3. 仓库名:resumecv(可自定义)
  4. 选择 Public,不勾选 README
  5. 点击 Create repository

2. 推送代码

在线简历 目录下打开终端,执行:

# 初始化 Git(如果还没有)
git init

# 添加所有文件
git add .
git commit -m "初始化在线简历"

# 关联远程仓库(把 YOUR_USERNAME 和 YOUR_REPO 换成你的)
git remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.git

# 推送
git branch -M main
git push -u origin main

3. 开启 GitHub Pages

  1. 进入仓库 → 点击 Settings → 左侧找到 Pages
  2. Source 中选择 Deploy from a branch
  3. Branch 中选择 main,文件夹选 / (root)
  4. 点击 Save

等待 1–2 分钟,你的简历将出现在:

https://YOUR_USERNAME.github.io/YOUR_REPO/

后续更新

修改 index.html 后,执行:

git add .
git commit -m "更新简历内容"
git push

页面会在几分钟内自动更新。

自定义域名(可选)

在仓库根目录新建 CNAME 文件,写入你的域名(如 resume.yourdomain.com),然后在域名服务商添加 CNAME 解析指向 YOUR_USERNAME.github.io

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors