2017-08-24 15 views
0

私はすでにAngular 4で新しいプロジェクトを開始しています。私はgitページにビルドプロジェクトをデプロイしようとしました。しかし、私の問題は、gitページの変更を展開するための変更をコミットする方法です。私はgitのためのプロジェクトをデプロイする手順とgitのページgit bashで角4の変更をコミットする方法

git init 
git add README.md 
git commit -m "first commit 
git remote add origin [email protected]:{myusername}/MyNewAngularApp.git 
git push -u origin master 
ng build --prod --aot --base-href https://nahidhasanswe.github.io/mynewangularapp/ 
ngh 

に続く今のgitページ

に変更をコミットする方法を教えてください。これは動作するはずですあなたに

+0

おそらくgitのドキュメントを参照する必要があります。 https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository – kenda

答えて

0
git checkout gh-pages 
git merge master 
git push origin gh-pages 

をありがとうございました!

関連する問題