新建一个git项目
1 初开始本地没有初始化 也就是 git init 导致报如下错误 ---git init 解决
fatal: not a git repository (or any of the parent directories): .git
2 git push报错------
本地没有update到最新版本的项目(git上有README.md文件没下载下来)
本地直接push所以会出错
解决办法 ---------git pull --rebase origin master
Warning: Permanently added the RSA host key for IP address '13.xxx.xxx.x'x to the list of known hosts.
To github.com:xxx/xxx
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@github.com:xxxx/xxx'