【发布时间】:2020-09-25 21:06:53
【问题描述】:
我想更改我的 VSCode 中使用的 git 帐户。我创建了一个新帐户,不想再使用旧帐户了
到目前为止我所尝试的:-
- 在这个 StackOverflow 问题Change Git Account in VSCode 中做了所有事情
- 在这个Chang git account on VScode
- 我也取消了 VSCode 设置中的
GitHub Authentication! - 阅读有关 GitHub 集成的 VSCode 文档,但他们没有提及此类内容
但我似乎无法让它工作
这是我在推送提交时遇到的错误
git push -u origin master
remote: Permission to username1/todo-app.git denied to username2.
fatal: unable to access 'https://github.com/username1/todo-app.git/': The requested URL returned error: 403
我能做些什么来解决这个问题?
提前致谢
【问题讨论】:
标签: git github visual-studio-code terminal git-bash