ng github-pages:deploy deleted my project
I've created a sample project, and then tried to upload it to github. Instead of loading the project to github, it just deleted my local project completely - including the git commits, so there is no way back! Any idea why this happened? Here's the command I've used: ng github-pages:deploy --message "First commit"
Just did that to me too, but I had the --user-page flag, as well. Everything is there, though, other than the "src" directory.
I also keep getting this error:
Error: Command failed: git push origin gh-pages:master
To https://github.com/something/something.github.io.git
! [rejected] gh-pages -> master (non-fast-forward)
error: failed to push some refs to 'https://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)
My bad - it was indeed a different branch. Didn't notice it checked out a branch. Now all is wel on my sidel :)
Getting "Failed to create GitHub repo. Error: 401 Unauthorized" when tries to deploys angular 2 app to my organization guthub page . Asking for a token and fails with 401
ng github-pages:deploy
? Please enter GitHub token you just created (used only once to create the repo):
@priyeshn You're commenting on a completely unrelated issue, and without full information also.
You should create a new issue, ensuring to fill out the template provided and including all relevant information.
You didn't include in your above comment whether or not you created the GitHub token -- might be worth adding that in.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.