remote: Support for password authentication was removed on August 13, 2021.
今天在push code 的时候发现报了如下的错误
remote: Support for password authentication was removed on August 13, 2021.
根据提示发现需要update github 的token , https://github.com/settings/tokens 改好生成对应的token ,记得保存好
git push https://<your_token>@github.com/<USERNAME>/<REPO>.git/
git push https://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@github.com/Clairedandan/git_demo.git/
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream https://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@github.com/Clairedandan/git_demo.git/ master
提示我用这个command 来使用了
192:git_demo futantan$ git push --set-upstream https://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@github.com/Clairedandan/git_demo.git/ master Enumerating objects: 16, done. Counting objects: 100% (16/16), done. Delta compression using up to 8 threads Compressing objects: 100% (15/15), done. Writing objects: 100% (16/16), 1.56 KiB | 799.00 KiB/s, done. Total 16 (delta 2), reused 0 (delta 0) remote: Resolving deltas: 100% (2/2), done. remote: remote: Create a pull request for 'master' on GitHub by visiting: remote: https://github.com/Clairedandan/git_demo/pull/new/master remote: To https://github.com/Clairedandan/git_demo.git/ * [new branch] master -> master Branch 'master' set up to track remote branch 'master' from 'https://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@github.com/Clairedandan/git_demo.git/'. 192:git_demo futantan$ git remote -v git_demo https://github.com/Clairedandan/git_demo.git (fetch) git_demo https://github.com/Clairedandan/git_demo.git (push) 192:git_demo futantan$ git remote add git_demo https://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@github.com/Clairedandan/git_demo.git/ fatal: remote git_demo already exists. 192:git_demo futantan$ git remote add git_demo1 https://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@github.com/Clairedandan/git_demo.git/ 192:git_demo futantan$ git remote -v
可以使用git remote add 别名 git link 来重命名 git_demo https://github.com/Clairedandan/git_demo.git (fetch) git_demo https://github.com/Clairedandan/git_demo.git (push) git_demo1 https://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@github.com/Clairedandan/git_demo.git/ (fetch) git_demo1 https://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@github.com/Clairedandan/git_demo.git/ (push) 192:git_demo futantan$ git push --set-upstream git_demo1 master fatal: unable to access 'https://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@github.com/Clairedandan/git_demo.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 192:git_demo futantan$ git push --set-upstream git_demo1 master fatal: unable to access 'https://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@github.com/Clairedandan/git_demo.git/': Failed to connect to github.com port 443: Operation timed out 192:git_demo futantan$ git push --set-upstream git_demo1 master Branch 'master' set up to track remote branch 'master' from 'git_demo1'. Everything up-to-date 192:git_demo futantan$
每天进步一点点~~
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!