创建Git Repo缺少许多项目文件 [英] Git Repo was created missing many project files

查看:114
本文介绍了创建Git Repo缺少许多项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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",因此可以使用编辑代码"按钮.当窗格出现时,git存储库中缺少所有代码文件(包括app.js,views文件夹等).

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附加到项目的存储库中?

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?

谢谢, 安迪

推荐答案

之所以会发生这种情况,是因为添加Git"按钮仅克隆到您从中创建应用程序的样板文件中.在您的情况下,它看起来像一个Node.js应用.

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.

对此我们深表歉意.我们的开发团队希望使添加Git"按钮适用于所有项目.

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

为此,有两种解决方法.

Two work arounds for this are as follows.

  1. 创建一个新应用,然后立即单击添加Git",这将确保所有新文件都位于您的git项目中.

  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项目并提交.

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 Repo缺少许多项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆