创建的Git Repo缺少许多项目文件

时间:2022-10-30 22:50:34

Have a strange issue. I cloned a bluemix app I had been working on, removed the .git info, modified the manifest, package and project files and then used 'cf push' to create a new app.

有一个奇怪的问题。我克隆了一个我正在处理的bluemix应用程序,删除了.git信息,修改了清单,包和项目文件,然后使用'cf push'创建了一个新的应用程序。

It appeared to work, the new project was created in bluemix and my files were there when I looked in the Files and Logs tab, so I then clicked 'Add Git' so I could use the 'Edit Code' button. When the pane appeared all of the code files were missing from the git repo (including app.js, the views folder, etc ).

它似乎工作,新项目是用bluemix创建的,当我查看文件和日志选项卡时,我的文件就在那里,所以我点击了'添加Git',这样我就可以使用'编辑代码'按钮了。当窗格出现时,git repo中缺少所有代码文件(包括app.js,views文件夹等)。

What is the easiest way to sync the files I see in Files and Logs to the repo that the project is attached to through bluemix?

将文件和日志中看到的文件同步到项目通过bluemix附加的仓库的最简单方法是什么?

Thanks, Andy

1 个解决方案

#1


This happens as the "Add Git" button will only clone in the files from the Boilerplate you created your app from. In your case it looks like a Node.js app.

这是因为“Add Git”按钮只会克隆您创建应用程序的Boilerplate中的文件。在你的情况下,它看起来像一个Node.js应用程序。

We are incredibly sorry for this. Our dev team is looking making the "Add Git" button work for all projects.

我们非常抱歉。我们的开发团队正在寻找“Add Git”按钮适用于所有项目。

Two work arounds for this are as follows.

两个解决方法如下。

  1. Create a new app, then immediately click "Add Git", this will insure a baseline that all new files will be in your git project.

    创建一个新的应用程序,然后立即单击“添加Git”,这将确保所有新文件将在您的git项目中的基线。

  2. This one isn't as pretty but it will work. Checkout your git project for your app that you already have created. Add the files back to the git project and commit them.

    这个不是很漂亮,但它会起作用。检查您已经创建的应用程序的git项目。将文件添加回git项目并提交它们。

#1


This happens as the "Add Git" button will only clone in the files from the Boilerplate you created your app from. In your case it looks like a Node.js app.

这是因为“Add Git”按钮只会克隆您创建应用程序的Boilerplate中的文件。在你的情况下,它看起来像一个Node.js应用程序。

We are incredibly sorry for this. Our dev team is looking making the "Add Git" button work for all projects.

我们非常抱歉。我们的开发团队正在寻找“Add Git”按钮适用于所有项目。

Two work arounds for this are as follows.

两个解决方法如下。

  1. Create a new app, then immediately click "Add Git", this will insure a baseline that all new files will be in your git project.

    创建一个新的应用程序,然后立即单击“添加Git”,这将确保所有新文件将在您的git项目中的基线。

  2. This one isn't as pretty but it will work. Checkout your git project for your app that you already have created. Add the files back to the git project and commit them.

    这个不是很漂亮,但它会起作用。检查您已经创建的应用程序的git项目。将文件添加回git项目并提交它们。