# deploy Demo
npm run build
cd dist
git init
git remote add origin https://github.com/mengshukeji/LuckysheetDemo.git
git add .
git commit -m 'deploy Luckysheet demo'
git push -f origin master:gh-pages
# ===============================================
# deploy Docs
npm run docs:build
cd docs/.vuepress/dist
git init
git remote add origin https://github.com/mengshukeji/LuckysheetDocs.git
git add .
git commit -m 'deploy Luckysheet docs'
git push -f origin master:gh-pages
# ===============================================
# replease
npm run build
npm run release -- --release-as patch
git push --follow-tags origin master
npm publish
# only publish
npm run build
git add .
npm run commit
npm version patch
git push -u origin master
npm publish
# ===============================================
# test pull request: https://docs.github.com/cn/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/checking-out-pull-requests-locally
# 139 is ID, dev is branch name
git fetch origin pull/139/head:dev
git checkout dev
# test code
git push origin dev
# create new PR ,merge dev to master
# list all remote and local branchs
git branch -a
# delete remote branch
git push origin --delete dev
git checkout master
# delete local branch
git branch -d dev