【问题标题】:Connect new folder to Heroku将新文件夹连接到 Heroku
【发布时间】:2018-07-03 09:24:12
【问题描述】:

我在 Heroku 上部署了我的网站(在一些帮助下)。该人向我发送了我下载并移动到笔记本电脑上特定位置的所有文件。我想编辑此文件夹中的文件并更新站点内容,但它不会更改站点,因为它未连接到该文件夹​​。

我假设我必须使用 heroku git remote 重新设置与这个新文件夹的连接。

我尝试了 heroku git remote 但我得到了这个:

fatal: remote heroku already exists.

我尝试寻找答案,寻求帮助,但我发现的所有内容似乎总是跳过如何连接文件夹。 (它永远不会指定如何输入要连接到的所需文件夹的位置。)我根本不是网络开发人员,所以如果你能分享我在终端中输入的确切内容以重新建立连接。

我只知道正确连接后的步骤,我可以编辑文件,保存然后输入:

Git add .
Git commit -m “message here”
Git push origin
Git push heroku master

谢谢。

--

也尝试过克隆

fatal: No configured push destination.

hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

joyjoko.space $ git push heroku master
The authenticity of host 'heroku.com (#####)' can't be established.
RSA key fingerprint is #####.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'heroku.com,#####' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我儿子不懂提示,谁能解释一下?我应该在终端中输入什么来让它连接到我想要的文件夹?

谢谢。

【问题讨论】:

    标签: git heroku terminal


    【解决方案1】:

    我认为您克隆了示例存储库。 你应该删除旧遥控器:

    git remote rm heroku
    

    然后重新添加。

    或使用git remote set-url heroku <your_url> 更改网址。

    【讨论】:

      猜你喜欢
      • 2021-07-12
      • 2019-03-06
      • 2020-10-19
      • 1970-01-01
      • 2022-08-20
      • 1970-01-01
      • 2016-06-27
      • 2022-11-17
      • 2015-03-14
      相关资源
      最近更新 更多