码云推送项目必须用ssl地址不能用http地址

Posted mozq

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了码云推送项目必须用ssl地址不能用http地址相关的知识,希望对你有一定的参考价值。

码云推送项目必须用ssl地址不能用http地址

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git remote
origin

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git push master:master
ssh: Could not resolve hostname master: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git push origin master:master
remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/mozq/learn.git/'

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git push --help

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git config --system --unset credential.helper

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git push origin master:master
remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/mozq/learn.git/'

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git remote
giteeSSL
origin

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git push giteeSSL master:master
Counting objects: 43, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (22/22), done.
Writing objects: 100% (43/43), 5.90 KiB | 0 bytes/s, done.
Total 43 (delta 3), reused 0 (delta 0)
remote: Powered by GITEE.COM [GNK-3.8]
To gitee.com:mozq/learn.git
   86b2c42..20a94b7  master -> master

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git branch -v
* master 20a94b7 [ahead 1] dubbo演示程序

jie@mozq MINGW64 /d/00/mozq_pro1/learn2 (master)
$ git branch -a
* master
  remotes/giteeSSL/master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

以上是关于码云推送项目必须用ssl地址不能用http地址的主要内容,如果未能解决你的问题,请参考以下文章

使用码云gitee.com托管代码

新手用的git配置命令

tomcat发布项目时,localhost可以访问,用ip地址不能访问,同时其他电脑也不能访问。

Git for Windows之推送本地版本库到远程仓库

更新码云上项目

结对编程