一、 git远程提交出现的错误
1.在输入
git init
git add .
git commit -m "首次提交"
git remote add originhttps://github.com/1006473786/error.git 时出现的错误
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.

2.git push -u origin master 出现的错误
error :filed to push some refs to 'https://github.com/1006473786/lianxi.git'

我在百度上用各种方法,如

解决方法:就是最简单的按照创建git远程仓库时的提示一步步操作才可以的,我头都大了
git init
git add README.md
git commit -m "first commit"
git remote add originhttps://github.com/1006473786/error.
gitgit push -u origin master

网友评论