Closed
Description
Please provide us with the following information:
OS?
Mac OSX (Sierra)
Versions.
angular-cli: 1.0.0-beta.19-3
node: 6.6.0
os: darwin x64
Repro steps.
In this order:
- Created project with
ng new newProject
- Created repo on github
- Added ssh remote origin on the command line
- Pushed project to github
- Tried
ng github-pages:deploy
. The build seemed to work, but then I got the error below.
The log given by the failure.
Error: Command failed: git push origin gh-pages:master
To git@github.com:something/something.github.io.git
! [rejected] gh-pages -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:something/something.github.io.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
When I try to pull, it says everything is up to date.
I am able to make it work by manually merging gh-pages into master, then add/commit/push that to Github.