# 2308-test **Repository Path**: hdfcdg/2308-test ## Basic Information - **Project Name**: 2308-test - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 30 - **Created**: 2023-10-24 - **Last Updated**: 2023-11-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 两个远程仓库: 我的【主仓库】:https://gitee.com/Elvmx/2308-test.git 你的: xxxxxx #### 一个本地仓库: 克隆你的远程仓库到本地 #### 问题: 主仓库更新了代码之后,我们本地仓库需要同步主仓库最新的代码下来。如何操作: 1. [只需要做一次]本地仓库与主仓库建立关联,在你的本地仓库下使用如下命令: git remote add upstream https://gitee.com/Elvmx/2308-test.git 2. 合并 1. 切换到 你自己的 master 分支上 git checkout master 2. 同步 git fetch upstream 3. 合并 git merge upstream/master 4. 查看本地代码是否ok了