Please make sure youhave the correct access

Please make sure youhave the correct access

  1. 这么一串命令很头疼,文件不能成功提交到Git上面首先
    git remote remove origin移除掉源地址;然后检查是否已经移除了地址,执行如下命令
    git remote -v
    Please make sure youhave the correct access
    如果出现这样的情况说明已经清空了地址。
  2. 接下来git status检查git状态
  3. 然后git init 出现Initialized empty Git repository in D:/briup/smart/.git/
    说明是空的
  4. 再 用命令 git status 查看下状态
    Please make sure youhave the correct access
  5. 再执行git add *命令添加文件缓存
    得到Please make sure youhave the correct access
    Please make sure youhave the correct access

这样正常的图片

6 然后git commit -m "基础页面提交"
Please make sure youhave the correct access
git config --global user.name "你的git账号名"
git config --global user.email "你账号绑定的邮箱"
执行这两步命令是告诉git你是谁,第一次提交会让你输入账号密码,一定要确保知道这些信息,不然后面可能更麻烦(所以建议你去git主页看一下再输入这些命令)
git remote add origin 你的仓库网址一定要是http的那个链接
最后一步就是提交上传了 git push origin master
Please make sure youhave the correct access
这样的就是成功了!

如果还是失败,那建议把隐藏的.git文件夹删除掉,重新建立一个仓库,按照如下命令
git status
git init
giti status
git commit -m “2020年8月28日项目更改优化提交”
git config --global user.name “***”
git config --global user.email “*********@qq.com”
git commit -m “2020年8月28日项目更改优化提交”
git remote add origin https://gitee.com/**/.git
git push origin master

引号是英文的,希望有所帮助,不喜勿喷。