In the terminal:
git init //.git file
git config --global user.name "my git user name"
git config --global user.email "my git user email"
git add .
Go to GitHub, create repository:
create New Repository,
git commit --m "first commit"
git remote add origin ..... //copy and paste
git push -u origin master //copy and paste
Deploy to gh-pages
In package.json:
“homepage”: “https://tinayanuk.github.io/appname”
“scripts”: {
“deploy”: “gh-pages -d build”
}
In terminal:
npm run build
npm run deploy
Top comments (0)