【发布时间】:2021-04-18 07:35:38
【问题描述】:
这是一个关于 Git 和 GitHub 的基本新手问题。我只是想确保我做对了。我的项目有一个本地 Git 和一个 GitHub 存储库。我有 Master 和 Develop 分支,我创建了一个新分支,然后我在本地删除了一个分支,为什么这个分支在 github 上仍然有一个活动分支。
CORP+son.ngoc.ng@son-ngoc-ng01 MINGW64 /d/Project/... (son.ngoc.ng)
$ git checkout son.ngoc.ng
Already on 'son.ngoc.ng'
Your branch is up to date with 'origin/son.ngoc.ng'.
CORP+son.ngoc.ng@son-ngoc-ng01 MINGW64 /d/Project/... (son.ngoc.ng)
$ git checkout master
Switched to branch 'master'
Your branch is behind 'origin/master' by 47 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
CORP+son.ngoc.ng@son-ngoc-ng01 MINGW64 /d/Project/... (master)
$ git branch -D son.ngoc.ng
Deleted branch son.ngoc.ng (was 40b60e8a).
CORP+son.ngoc.ng@son-ngoc-ng01 MINGW64 /d/Project/... (master)
$ git checkout son.ngoc.ng1
Switched to branch 'son.ngoc.ng1'
Github 概览
Default branch
master Updated 3 hours ago by son-ngoc-ng Default
Your branches
son.ngoc.ng1 Updated 3 hours ago by son-ngoc-ng #55 Merged
son.ngoc.ng Updated 4 hours ago by son-ngoc-ng #54 Merged
Active branches
son.ngoc.ng1 Updated 3 hours ago by son-ngoc-ng #55 Merged
son.ngoc.ng Updated 4 hours ago by son-ngoc-ng #54 Merged
【问题讨论】:
-
我无法发布图片以获得更好的描述
-
阅读此内容。希望你能得到你需要的东西:) Link