gitee第一次提交代码提交不上去,老是报错。 ! [remote rejected] master |
您所在的位置:网站首页 › csdn登录不上去 › gitee第一次提交代码提交不上去,老是报错。 ! [remote rejected] master |
有没有同学就是遇到这种问题,第一次上传代码,到push这一步老是遇到 最简单的第一次提交代码流程, 先添加账号密码 git config --global user.name “你的用户名” git config --global user.email “你的邮箱” 如果已经添加了,可以查询一下 git config user.name git config user.email 第一步找到初始化本地项目, git init 第二步 添加跟踪文件 git add . 注意有个点 第三步 提交到本地仓库 git commit -m ‘提交的备注’ 第四步 把本地仓库和远程仓库连接起来 git remote add origin “远程地址” 第五步 远程代码与本地代码冲突合并 git pull --rebase origin master 最后提交到远程仓库 git push -u origin master -f 希望能帮助到您。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |