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

第一个git pull和git push不起作用,git,github,Git,Github,我只是一个github新手 我曾多次尝试使用git进行更新,但有一次成功了 然而,当我试图通过删除我的所有存储库、相关文件、本地和远程分支来检查这个过程时,一切都出了问题,因为它们看起来太乱了 所以我的情况是: 我首先在github中创建了一个存储库,然后尝试了在internet上搜索的所有内容,如: git init git branch --track gitbook master 我还是被困在这里。在我推拉的过程中,除了在某个时刻我的github存储库中的那些.md是在我的本地文件中创

我只是一个github新手

我曾多次尝试使用git进行更新,但有一次成功了

然而,当我试图通过删除我的所有存储库、相关文件、本地和远程分支来检查这个过程时,一切都出了问题,因为它们看起来太乱了

所以我的情况是:

我首先在github中创建了一个存储库,然后尝试了在internet上搜索的所有内容,如:

git init

git branch --track gitbook master
我还是被困在这里。在我推拉的过程中,除了在某个时刻我的github存储库中的那些.md是在我的本地文件中创建的之外,我没有得到任何更改,这是手动的

现在

一切都是最新的


那么我下一步能做什么呢?

查看并获取一些使用git和github的初学者指南。它很有效!哇,只是一个简单的git添加*和git提交。。。非常感谢,乔希!
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)