What is a git upstream

后端 未结 2 1952
青春惊慌失措
青春惊慌失措 2021-02-01 19:48

When you have created a github-repo and added the the github-repo as remote

git remote add origin https://github.com/githubname/reponame.git

t

2条回答
  •  旧巷少年郎
    2021-02-01 20:23

    "Upstream" is the repo you cloned (some of) the branches in yours from, and where you push changes to those branches (and optionally entire new branches) once they've been committed. GitHub acts as your upstream because they store the revisions for you, in a centralized location.

提交回复
热议问题