From 33ea44cd624c395b2cf4bb0c2709ec585f0decd0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 07:03:07 +0000 Subject: [PATCH 1/2] Initial plan From 76f6a3a01a55b7be58534ab0a3b7f4fcb34d8b3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 07:05:13 +0000 Subject: [PATCH 2/2] Add comprehensive remote repository documentation Co-authored-by: fhs-nb666 <232364144+fhs-nb666@users.noreply.github.com> --- README.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 75 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e17ad2..e67bcfc 100644 --- a/README.md +++ b/README.md @@ -1 +1,75 @@ -# fhs \ No newline at end of file +# fhs + +## 如何关联远程仓库 (How to Associate a Remote Repository) + +### 中文说明 + +#### 1. 添加远程仓库 +```bash +git remote add origin <远程仓库URL> +``` +例如: +```bash +git remote add origin https://github.com/username/repository.git +``` + +#### 2. 查看远程仓库 +```bash +git remote -v +``` + +#### 3. 修改远程仓库URL +```bash +git remote set-url origin <新的远程仓库URL> +``` + +#### 4. 删除远程仓库 +```bash +git remote remove origin +``` + +#### 5. 推送代码到远程仓库 +```bash +git push -u origin main +``` + +#### 6. 从远程仓库拉取代码 +```bash +git pull origin main +``` + +### English Instructions + +#### 1. Add a Remote Repository +```bash +git remote add origin +``` +Example: +```bash +git remote add origin https://github.com/username/repository.git +``` + +#### 2. View Remote Repositories +```bash +git remote -v +``` + +#### 3. Change Remote Repository URL +```bash +git remote set-url origin +``` + +#### 4. Remove a Remote Repository +```bash +git remote remove origin +``` + +#### 5. Push Code to Remote Repository +```bash +git push -u origin main +``` + +#### 6. Pull Code from Remote Repository +```bash +git pull origin main +``` \ No newline at end of file