Gh-Pages on Windows requires modifying the git remote
Created by: xnt
Installing and configuring gh-pages on Windows for a 2FA GitHub account doesn't work great by default. The easiest way I've found to make it work is as follows:
- Create a token
- Set the remote to include the user name and token
- Deploy
Is it OK if I make this change to the doc?
Note: on Windows with 2FA, if you get
/dev/tty: No such a device or address
or a similar error, try the follwing:
- Create a new Personal Access Token
git remote set-url origin https://<user>:<token>@github.com/<user>/<repo>
- Try
npm run deploy
again