第一个git pull和git push不起作用

时间:2015-10-08 16:42:54

标签: git github

我只是一个github新手

我尝试用git多次更新并成功一次。

然而,当我试图通过删除我的所有存储库,相关文件,本地和远程分支来审查此过程时,一切都出错了。因为它们看起来很混乱。

所以我的情况是:

我首先在我的github中创建了一个存储库,并尝试了我在互联网上搜索过的所有内容,例如:

git init

git branch --track gitbook master

我仍然被困在这里。当我推拉时,我没有任何改变,只是在某些时候我的github存储库中的.md是在我的本地文件中创建的,这是手动的。

现在..

Walter: gitbook wangxuefei$ git branch -a

*master

remotes/gitbook/master

Awlter:gitbook wangxuefei$ git remote -v

gitbook https://github.com/Awlter/supermanual (fetch)

gitbook https://github.com/Awlter/supermanual (push)

Awlter:gitbook wangxuefei$ git pull

Already up-to-date.

Awlter:gitbook wangxuefei$ git push





warning: push.default is unset; its implicit value has changed in

Git 2.0 from 'matching' to 'simple'. To squelch this message

and maintain the traditional behavior, use:



  git config --global push.default matching



To squelch this message and adopt the new behavior now, use:



  git config --global push.default simple



When push.default is set to 'matching', git will push local branches

to the remote branches that already exist with the same name.



Since Git 2.0, Git defaults to the more conservative 'simple'

behavior, which only pushes the current branch to the corresponding

remote branch that 'git pull' uses to update the current branch.



See 'git help config' and search for 'push.default' for further information.

(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode

'current' instead of 'simple' if you sometimes use older versions of Git)

一切都是最新的

那我接下来该怎么办?

0 个答案:

没有答案