【发布时间】:2021-03-01 06:41:57
【问题描述】:
按照说明 here 将现有的 project 添加到 github。我做了一个git push origin master 并得到:* [new branch] master -> master。
我不记得以前见过这个。这正常吗?
编辑 1:
ray@rays8350 /cygdrive/d/ray/allEclipseProjects/eclipseworkspaces
$ git remote show origin
* remote origin
Fetch URL: https://github.com/rtayek/eclipseworkspaces.git
Push URL: https://github.com/rtayek/eclipseworkspaces.git
HEAD branch: master
Remote branch:
master tracked
Local ref configured for 'git push':
master pushes to master (up to date)
ray@rays8350 /cygdrive/d/ray/allEclipseProjects/eclipseworkspaces
$ git remote -vv
origin https://github.com/rtayek/eclipseworkspaces.git (fetch)
origin https://github.com/rtayek/eclipseworkspaces.git (push)
ray@rays8350 /cygdrive/d/ray/allEclipseProjects/eclipseworkspaces
$ git branch -vv
* master 8112d8f added license.
ray@rays8350 /cygdrive/d/ray/allEclipseProjects/eclipseworkspaces
$ git branch -a
* master
remotes/origin/master
ray@rays8350 /cygdrive/d/ray/allEclipseProjects/eclipseworkspaces
$
【问题讨论】:
-
是的,我认为这很正常。
git status、git remote -vv和git branch -vv说什么? -
git show remote origin再试试看 evrying 没问题 -
请参阅编辑 1。
标签: git github git-remote