ZhangZhihui's Blog  

remote: Invalid username or token. Password authentication is not supported for Git operations.
fatal: Authentication failed for 'https://github.com/ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git/'

 

SSH Key already added in Github.

 

ZhangZhihui@ZZHPC MINGW64 /d/VSCodeWorkspace/Git/Pandas-for-Data-Manipulation-and-Visualization (main)
$ git remote -v
origin https://github.com/ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git (fetch)
origin https://github.com/ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git (push)

 

Change the Git remote to SSH:

ZhangZhihui@ZZHPC MINGW64 /d/VSCodeWorkspace/Git/Pandas-for-Data-Manipulation-and-Visualization (main)
$ git remote set-url origin git@github.com:ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git

 

ZhangZhihui@ZZHPC MINGW64 /d/VSCodeWorkspace/Git/Pandas-for-Data-Manipulation-and-Visualization (main)
$ git remote -v
origin git@github.com:ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git (fetch)
origin git@github.com:ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git (push)

 

ZhangZhihui@ZZHPC MINGW64 /d/VSCodeWorkspace/Git/Pandas-for-Data-Manipulation-and-Visualization (main)
$ git push origin main
Enumerating objects: 18, done.
Counting objects: 100% (18/18), done.
Delta compression using up to 16 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (17/17), 1.79 MiB | 2.64 MiB/s, done.
Total 17 (delta 8), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (8/8), done.
To github.com:ZhangZhihuiAAA/Pandas-for-Data-Manipulation-and-Visualization.git
71185dc..195a789 main -> main

posted on 2025-11-21 15:27  ZhangZhihuiAAA  阅读(7)  评论(0)    收藏  举报