问题
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