Git push ionic master problem


#1

I ma doing same thing as last couple of months. Something is changed and I can not push to ionic pro anymore.


 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'git@git.ionicjs.com:blabla/starter3.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

#2

Hi,
you should use git pull firstly


#3

I did!
it didn’t work.
I even use git push -u origin master after pull.
no use
I use -f, still not working.


#4

So If I have sometimes this problem too, I make a new clone and then copy my changed files back. Then everything works. It sucks, I know, but it is fastest solution for me.


#5

Oh
I did this, and it worked:

git push -f ionic master

Best