Macos 从终端删除git(在线解决方案不工作)(Mac OSX)
我使用了我的旧github帐户,现在该帐户已停用,我现在有了一个新帐户。我希望它与我的新github用户名通信。我尝试了许多internet解决方案,并重新安装了git和命令行工具。每当我输入Macos 从终端删除git(在线解决方案不工作)(Mac OSX),macos,git,github,Macos,Git,Github,我使用了我的旧github帐户,现在该帐户已停用,我现在有了一个新帐户。我希望它与我的新github用户名通信。我尝试了许多internet解决方案,并重新安装了git和命令行工具。每当我输入git remote-v 原点https://github.com/OldUsername/App.git (取回) 起源https://github.com/OldUsername/App.git (推送) 此帐户现在已停用,因此无法使用,我已尝试执行以下操作: git config --global u
git remote-v
原点https://github.com/OldUsername/App.git (取回)
起源https://github.com/OldUsername/App.git (推送)
此帐户现在已停用,因此无法使用,我已尝试执行以下操作:
git config --global user.email "YOUR EMAIL ADDRESS"
git config user.name "Username"
我已经尝试了几个小时,但仍然不知道如何让我的命令行能够以我的新用户名推送到新项目。这是存储库配置中远程项目的推送设置 请手动编辑/.git/config或尝试类似的操作
git remote set-url origin https://github.com/NewUsername/app.git
远程设备是本地存储库的一部分。您可以使用各种
git remote
子命令添加、删除、重命名或重新配置它们。如果不包含任何你所珍视的东西和克隆或者创建一个新的目录,你可以考虑只对当前存储库目录进行核对。
或者,您可以使用以下方法设置远程服务器的URL:
git remote set-url origin <new URL>
git远程设置url源
在不使用的情况下进行尝试--global
。您可能有特定于项目的设置。