gpt4 book ai didi

windows - 如何编辑我的 .git/config 文件?

转载 作者:可可西里 更新时间:2023-11-01 09:20:01 26 4
gpt4 key购买 nike

如何编辑我的 .git/config 文件?

显然,我的 heroku Remote 设置为 heroku 以外的东西;结果,我无法在 Heroku 上正确部署我的 Rails 应用程序。但是,我找不到如何编辑它以将其设置为正确的内容。

我在哪里可以找到配置文件?我在我的存储库或我的 Git 文件夹安装中找不到以这种方式命名的文件。我应该在哪里搜索它,我可以编辑它吗?

$ git remote -v
heroku https://git.heroku.com/pure-plateau-4958.git (fetch)
heroku https://git.heroku.com/pure-plateau-4958.git (push)
origin git@github.com:vike27/sciencevest100.git (fetch)
origin git@github.com:vike27/sciencevest100.git (push)

但是 heroku open 不起作用,heroku 支持说这是因为我的 .git/config 文件中前面提到的错误

我在 Windows8 上

最佳答案

您的 Remote 通常在您的本地配置文件中设置。
可以在此处找到最终编辑的文件:.git/config.
您可以直接编辑它或使用 git config 配置来设置/获取其中的条目。

git help config 了解详情。

关于windows - 如何编辑我的 .git/config 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30322093/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com