j集团公司的网站建设,设计网络培训,网站推广工作内容,谷城县城乡建设局网站一、背景#xff1a; 我首先在github创建了一个新的项目#xff0c;并自动创建了readme文件其次在vscode创建项目并写了两个文件在我想将vscode的项目上传到对应的github上时#xff0c;错误出现了 二、报错及解决方案#xff1a; 1.解决方案#xff1a; 需要在git上配置用…一、背景 我首先在github创建了一个新的项目并自动创建了readme文件其次在vscode创建项目并写了两个文件在我想将vscode的项目上传到对应的github上时错误出现了 二、报错及解决方案 1.解决方案 需要在git上配置用户名和邮箱
2.配置代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
3.git push origin master
报错fatal: origin does not appear to be a git repository a.用了这位佬的方法连接到了githubgit 解决 fatal: origin does not appear to be a git repository-CSDN博客 b.再次push报错gitgithub.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas 用这个方法配置了ssh解决gitgithub.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas-CSDN博客 c.再次提交报错Updates were rejected because the tip of your current branch is behind
报错原因GitHub内容与本地不 push前先将远程repository修改pull下来 git pull origin master git push -u origin master 成功健身去了...