修改了readme,同步到最新域名
This commit is contained in:
@@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
| 用途 | 链接 |
|
| 用途 | 链接 |
|
||||||
|---|---|
|
|---|---|
|
||||||
| 注册账号 | https://git.23794.top/user/sign_up |
|
| 注册账号 | https://git.hinomori-minori.com/user/sign_up |
|
||||||
| 登录 | https://git.23794.top/user/login |
|
| 登录 | https://git.hinomori-minori.com/user/login |
|
||||||
| 忘记密码 | https://git.23794.top/user/forgot_password |
|
| 忘记密码 | https://git.hinomori-minori.com/user/forgot_password |
|
||||||
| 添加 SSH 公钥 | https://git.23794.top/user/settings/keys |
|
| 添加 SSH 公钥 | https://git.hinomori-minori.com/user/settings/keys |
|
||||||
| 账号设置 | https://git.23794.top/user/settings |
|
| 账号设置 | https://git.hinomori-minori.com/user/settings |
|
||||||
| 生成访问令牌 | https://git.23794.top/user/settings/applications |
|
| 生成访问令牌 | https://git.hinomori-minori.com/user/settings/applications |
|
||||||
| 浏览全部仓库 | https://git.23794.top/explore |
|
| 浏览全部仓库 | https://git.hinomori-minori.com/explore |
|
||||||
| 下载 Git | https://git-scm.com/downloads |
|
| 下载 Git | https://git-scm.com/downloads |
|
||||||
| 下载 VSCode | https://code.visualstudio.com/ |
|
| 下载 VSCode | https://code.visualstudio.com/ |
|
||||||
| 下载 dupeGuru | https://dupeguru.voltaicideas.net/ |
|
| 下载 dupeGuru | https://dupeguru.voltaicideas.net/ |
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
- `<上游用户名>`:你正在阅读的这个仓库的所有者,即本仓库地址的第一段。
|
- `<上游用户名>`:你正在阅读的这个仓库的所有者,即本仓库地址的第一段。
|
||||||
- `<仓库名>`:本仓库名,即本仓库地址的第二段。
|
- `<仓库名>`:本仓库名,即本仓库地址的第二段。
|
||||||
- `<你的用户名>`:你注册时填的用户名。
|
- `<你的用户名>`:你注册时填的用户名。
|
||||||
- 例:地址为 `https://git.23794.top/hinomori_minori/YuriImages.git`,则 `<上游用户名>`=`hinomori_minori`,`<仓库名>`=`YuriImages`。
|
- 例:地址为 `https://git.hinomori-minori.com/hinomori_minori/YuriImages.git`,则 `<上游用户名>`=`hinomori_minori`,`<仓库名>`=`YuriImages`。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -56,7 +56,7 @@ Git 是给文件拍快照的工具。它记录每一次改动,把改动打包
|
|||||||
| Push 推送 | 把本地 commit 上传到服务器 |
|
| Push 推送 | 把本地 commit 上传到服务器 |
|
||||||
| PR 合并请求 | 请求管理员把你 Fork 里的改动合并进原仓库 |
|
| PR 合并请求 | 请求管理员把你 Fork 里的改动合并进原仓库 |
|
||||||
|
|
||||||
本仓库地址:**https://git.23794.top/hinomori_minori/YuriImages.git**
|
本仓库地址:**https://git.hinomori-minori.com/hinomori_minori/YuriImages.git**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -79,11 +79,11 @@ Git 是给文件拍快照的工具。它记录每一次改动,把改动打包
|
|||||||
|
|
||||||
## 四、注册 Gitea 账号
|
## 四、注册 Gitea 账号
|
||||||
|
|
||||||
1. 打开 https://git.23794.top/user/sign_up
|
1. 打开 https://git.hinomori-minori.com/user/sign_up
|
||||||
2. 填写用户名、邮箱、密码。用户名只能是字母、数字、`-`、`_`。
|
2. 填写用户名、邮箱、密码。用户名只能是字母、数字、`-`、`_`。
|
||||||
3. 点“注册”。
|
3. 点“注册”。
|
||||||
4. 去邮箱点验证链接。没有就查垃圾箱。
|
4. 去邮箱点验证链接。没有就查垃圾箱。
|
||||||
5. 验证后打开 https://git.23794.top/user/login 登录。
|
5. 验证后打开 https://git.hinomori-minori.com/user/login 登录。
|
||||||
|
|
||||||
**警告**:仅支持QQ邮箱,网易邮箱等国内邮箱,其他邮箱服务商收不到邮件。
|
**警告**:仅支持QQ邮箱,网易邮箱等国内邮箱,其他邮箱服务商收不到邮件。
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ Git 是给文件拍快照的工具。它记录每一次改动,把改动打包
|
|||||||
2. 连续按三次回车,不设密码。
|
2. 连续按三次回车,不设密码。
|
||||||
3. 查看公钥:`cat ~/.ssh/id_ed25519.pub` win
|
3. 查看公钥:`cat ~/.ssh/id_ed25519.pub` win
|
||||||
4. 复制全部输出内容,从 `ssh-ed25519` 到邮箱结尾。
|
4. 复制全部输出内容,从 `ssh-ed25519` 到邮箱结尾。
|
||||||
5. 打开 https://git.23794.top/user/settings/keys ,点“增加密钥”,粘贴,标题随意,保存。
|
5. 打开 https://git.hinomori-minori.com/user/settings/keys ,点“增加密钥”,粘贴,标题随意,保存。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -154,10 +154,10 @@ Git 是给文件拍快照的工具。它记录每一次改动,把改动打包
|
|||||||
|
|
||||||
## 七、Fork 本仓库
|
## 七、Fork 本仓库
|
||||||
|
|
||||||
1. 浏览器打开本仓库首页:`https://git.23794.top/hinomori_minori/YuriImages`
|
1. 浏览器打开本仓库首页:`https://git.hinomori-minori.com/hinomori_minori/YuriImages`
|
||||||
2. 点右上角 **派生** 按钮。
|
2. 点右上角 **派生** 按钮。
|
||||||
3. 所有者选你自己,仓库名保持不变,点“派生仓库”。
|
3. 所有者选你自己,仓库名保持不变,点“派生仓库”。
|
||||||
4. 完成后自动跳转到 `https://git.23794.top/<你的用户名>/<仓库名>`,标题旁显示 `forked from ...`。
|
4. 完成后自动跳转到 `https://git.hinomori-minori.com/<你的用户名>/<仓库名>`,标题旁显示 `forked from ...`。
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -171,10 +171,10 @@ Git 是给文件拍快照的工具。它记录每一次改动,把改动打包
|
|||||||
1. 在你 Fork 的仓库页面点“Code”按钮,复制 HTTPS 地址。
|
1. 在你 Fork 的仓库页面点“Code”按钮,复制 HTTPS 地址。
|
||||||
2. 打开终端,切换到存放目录,执行:
|
2. 打开终端,切换到存放目录,执行:
|
||||||
`cd ~/Desktop`
|
`cd ~/Desktop`
|
||||||
`git clone https://git.23794.top/<你的用户名>/<仓库名>.git`
|
`git clone https://git.hinomori-minori.com/<你的用户名>/<仓库名>.git`
|
||||||
`cd <仓库名>`
|
`cd <仓库名>`
|
||||||
3. 如果你做了第六节,改用 SSH 地址:
|
3. 如果你做了第六节,改用 SSH 地址:
|
||||||
`git clone ssh://[email protected].23794.top:2222/<你的用户名>/<仓库名>.git`
|
`git clone ssh://[email protected].hinomori-minori.com:2222/<你的用户名>/<仓库名>.git`
|
||||||
|
|
||||||
Android Termux 建议先执行 `termux-setup-storage`,再 `cd /sdcard/Pictures`。
|
Android Termux 建议先执行 `termux-setup-storage`,再 `cd /sdcard/Pictures`。
|
||||||
iPhone 的 Working Copy 直接在 App 内点“Clone repository”粘贴地址。
|
iPhone 的 Working Copy 直接在 App 内点“Clone repository”粘贴地址。
|
||||||
@@ -232,9 +232,9 @@ iPhone 的 Working Copy 直接在 App 内点“Clone repository”粘贴地址
|
|||||||
`git remote -v`
|
`git remote -v`
|
||||||
|
|
||||||
### 情况 A:你 Clone 的是上游仓库,要改成自己的 Fork
|
### 情况 A:你 Clone 的是上游仓库,要改成自己的 Fork
|
||||||
`git remote set-url origin https://git.23794.top/<你的用户名>/<仓库名>.git`
|
`git remote set-url origin https://git.hinomori-minori.com/<你的用户名>/<仓库名>.git`
|
||||||
把上游加成另一个远程名,方便以后同步:
|
把上游加成另一个远程名,方便以后同步:
|
||||||
`git remote add upstream https://git.23794.top/<上游用户名>/<仓库名>.git`
|
`git remote add upstream https://git.hinomori-minori.com/<上游用户名>/<仓库名>.git`
|
||||||
### 情况 B:你 Clone 的是你自己 Fork 的仓库,给本次提交单独开一个分支(推荐)
|
### 情况 B:你 Clone 的是你自己 Fork 的仓库,给本次提交单独开一个分支(推荐)
|
||||||
`git checkout -b add-yuri-20260101`
|
`git checkout -b add-yuri-20260101`
|
||||||
含义:从当前分支切出新分支 `add-yuri-20260101`,之后所有改动都在这个分支上。
|
含义:从当前分支切出新分支 `add-yuri-20260101`,之后所有改动都在这个分支上。
|
||||||
@@ -258,10 +258,10 @@ iPhone 的 Working Copy 直接在 App 内点“Clone repository”粘贴地址
|
|||||||
## 十一、权限说明
|
## 十一、权限说明
|
||||||
|
|
||||||
**为什么无法直接 push 到本仓库?**
|
**为什么无法直接 push 到本仓库?**
|
||||||
Gitea 每个仓库都有权限控制。你不是本仓库的协作者,没有写权限,执行 `git push` 到 `https://git.23794.top/<上游用户名>/<仓库名>.git` 会被服务器拒绝,报错类似 `remote: You do not have permission to push` 或 `403`。这是正常现象,不是你操作错了。
|
Gitea 每个仓库都有权限控制。你不是本仓库的协作者,没有写权限,执行 `git push` 到 `https://git.hinomori-minori.com/<上游用户名>/<仓库名>.git` 会被服务器拒绝,报错类似 `remote: You do not have permission to push` 或 `403`。这是正常现象,不是你操作错了。
|
||||||
|
|
||||||
**为什么可以对 Fork 的分支 push?**
|
**为什么可以对 Fork 的分支 push?**
|
||||||
Fork 是服务器在你账号下新建的独立仓库,所有者是你,你对自己的仓库有完整写权限。往 `https://git.23794.top/<你的用户名>/<仓库名>.git` push 一定成功。
|
Fork 是服务器在你账号下新建的独立仓库,所有者是你,你对自己的仓库有完整写权限。往 `https://git.hinomori-minori.com/<你的用户名>/<仓库名>.git` push 一定成功。
|
||||||
|
|
||||||
**为什么还要发 PR?**
|
**为什么还要发 PR?**
|
||||||
你 push 到的只是自己的 Fork,管理员看不到。PR 就是把“我 Fork 里的这个分支”正式请求合并进“上游仓库的主分支”。
|
你 push 到的只是自己的 Fork,管理员看不到。PR 就是把“我 Fork 里的这个分支”正式请求合并进“上游仓库的主分支”。
|
||||||
@@ -284,7 +284,7 @@ Fork 是服务器在你账号下新建的独立仓库,所有者是你,你对
|
|||||||
- `git commit -m "..."`:打包成一次提交,引号内写清做了什么。
|
- `git commit -m "..."`:打包成一次提交,引号内写清做了什么。
|
||||||
- `git push origin 分支名`:推送到你 Fork 的这个分支。
|
- `git push origin 分支名`:推送到你 Fork 的这个分支。
|
||||||
|
|
||||||
第一次 push 会要求输入用户名和密码。如果提示不支持密码登录,去 https://git.23794.top/user/settings/applications 生成访问令牌,用令牌当密码。
|
第一次 push 会要求输入用户名和密码。如果提示不支持密码登录,去 https://git.hinomori-minori.com/user/settings/applications 生成访问令牌,用令牌当密码。
|
||||||
|
|
||||||
**警告**:`git add .` 会把目录里所有东西都加进去。执行前先删掉无关文件,如 `Thumbs.db`、`.DS_Store`。
|
**警告**:`git add .` 会把目录里所有东西都加进去。执行前先删掉无关文件,如 `Thumbs.db`、`.DS_Store`。
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ Fork 是服务器在你账号下新建的独立仓库,所有者是你,你对
|
|||||||
5. 点 `...` → `推送`,或点状态栏的同步按钮。
|
5. 点 `...` → `推送`,或点状态栏的同步按钮。
|
||||||
|
|
||||||
### 方式 3:手机网页上传(Android / iPhone 推荐)
|
### 方式 3:手机网页上传(Android / iPhone 推荐)
|
||||||
1. 手机浏览器打开你的 Fork:`https://git.23794.top/<你的用户名>/<仓库名>`
|
1. 手机浏览器打开你的 Fork:`https://git.hinomori-minori.com/<你的用户名>/<仓库名>`
|
||||||
2. 进入你要放图的目录。
|
2. 进入你要放图的目录。
|
||||||
3. 点“上传文件”,从相册选择图片。
|
3. 点“上传文件”,从相册选择图片。
|
||||||
4. 在“提交信息”里写清加了什么。
|
4. 在“提交信息”里写清加了什么。
|
||||||
@@ -311,7 +311,7 @@ Fork 是服务器在你账号下新建的独立仓库,所有者是你,你对
|
|||||||
|
|
||||||
全平台操作一致,全部在浏览器完成:
|
全平台操作一致,全部在浏览器完成:
|
||||||
|
|
||||||
1. 打开上游仓库:`https://git.23794.top/<上游用户名>/<仓库名>`
|
1. 打开上游仓库:`https://git.hinomori-minori.com/<上游用户名>/<仓库名>`
|
||||||
2. 点上方“合并请求”(Pull Requests)标签。
|
2. 点上方“合并请求”(Pull Requests)标签。
|
||||||
3. 点右侧“新建合并请求”。
|
3. 点右侧“新建合并请求”。
|
||||||
4. 左侧 base 选上游仓库的默认分支(通常是 `main`)。
|
4. 左侧 base 选上游仓库的默认分支(通常是 `main`)。
|
||||||
|
|||||||
Reference in New Issue
Block a user