How do I Git pull an Angular app to a local Angular-pwa enabled project?

核能气质少年 提交于 2019-12-25 01:21:26

问题


I created an angular app which I pushed to my Bitbucket repository. To turn my angular app into a Progressive Web App, I followed this step by step guide.

The result, was a newly created folder (as per the guide) called angular-pwa. I then cd into the angular-pwa and pulled my app from the repository.

The commands I used to pull my app:

git init .
git remote add origin 
https://myName@bitbucket.org/myName/myAppName.git
git pull origin master

I never saw any error messages following the above commands, suggesting that my app was successfully pulled, however, when I cd into the angular-pwa folder, I don't see any trance of my pulled app.

By pulling my app from the repository, I expected everything in the angular-pwa folder to be overwritten with my pulled app.

Running ng serve -o --port 4000 also shows the default angular page installed via ng new angular-pwa as seen below but NOT my app:

the default app installed via ng new angular-pwa

What am I doing wrong, and how to achieve the desired outcome?

来源:https://stackoverflow.com/questions/58140786/how-do-i-git-pull-an-angular-app-to-a-local-angular-pwa-enabled-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!