Ionic pro build error npm ERR! error: pathspec 'master' did not match any file(s) known to git

Hi everybody

So I have an existing ionic1 app that I sent up on ionic pro as an existing app.

I am using Ionic as a git remote all after using cmd ‘git push ionic master’ builds keep failing with the error below

Build script detected in package.json…
$ npm install --quiet --no-optional
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git checkout master
npm ERR! error: pathspec ‘master’ did not match any file(s) known to git.
npm ERR!

I have built it successfully locally.

Any advice would be much appreciated.