Skip to content

如何更新fork的远程仓库代码到自己的本地仓库 #4

Open
@program-spiritual

Description

@program-spiritual

配置流程

配置上游仓库

  1. 查看远程仓库
git remote -v
  1. 添加上游仓库到本地
git remote add upstream [upsteam branch]
  1. 再次检查
git remote -v
  1. 同步远程仓库到本地仓库
git pull upstream  master
  1. 更新到自己的远程分支
git push origin master

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions