为什么从Dockerfile生成的克隆步骤无法正常工作,我该如何修复或find解决方法?

构build时出现以下错误:

Cloning "https://code.myrepo.ch/scm/AM/my-web.app.git" ... error: build error: error: Your local changes to the following files would be overwritten by checkout: pom.xml Please, commit your changes or stash them before you can switch branches. Aborting 

作为解决方法,我从yaml中删除以下内容:

  source: type: Git git: uri: 'https://code.myrepo.ch/scm/AM/my-web-app.git' ref: master contextDir: docker sourceSecret: name: scmsecret 

并做出这样的改变:

 source: type: Dockerfile 

然后使用openshift ui添加git仓库中的dockerfile的内容。

所有这些工作,但docker文件的最后一行是这样的:

 CMD /usr/share/nginx/start.sh 

当然start.sh找不到。

我怎么能解决原来的问题(git的问题)或以某种方式embeddedstart.sh? 我只有主人这个问题,换句话说,当使用分支。