今天在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://[email protected]/Clairedandan/git_demo.git/ master
提示我用这个command 来使用了
192:git_demo futantan$ git push --set-upstream https://[email protected]/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://[email protected]/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://[email protected]/Clairedandan/git_demo.git/ fatal: remote git_demo already exists. 192:git_demo futantan$ git remote add git_demo1 https://[email protected]/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://[email protected]/Clairedandan/git_demo.git/ (fetch) git_demo1 https://[email protected]/Clairedandan/git_demo.git/ (push) 192:git_demo futantan$ git push --set-upstream git_demo1 master fatal: unable to access 'https://[email protected]/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://[email protected]/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$
标签:13,github,remote,demo,git,https,password,com From: https://www.cnblogs.com/clairedandan/p/18049898