I am trying add my ionic project to my git account. I am getting rejected message the way in which I am trying.
I have tried like it is described in the following article.
https://www.joshmorony.com/how-to-use-git-with-ionic-2-projects/
I am trying add my ionic project to my git account. I am getting rejected message the way in which I am trying.
I have tried like it is described in the following article.
https://www.joshmorony.com/how-to-use-git-with-ionic-2-projects/
As the error says:
git: updates were rejected because the remote contains work that you do not have locally
this means that the remote branch have changes that you did not pull into your local branch.
git fetch && git pull
will replace your local branch with the content of the remote branch, then you can do changes to your local branch and then push them back to the remote branch.
this answer could help you as well