Last active
October 25, 2018 16:02
-
-
Save diuis/d39f046e80ccbb2be517f75b9077d0c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install hub : https://github.com/github/hub | |
on mac os x: | |
brew install hub | |
add to ~/.ssh/config : | |
Host github | |
HostName github.com | |
PubKeyAuthentication yes | |
IdentityFile ~/.ssh/id_rsa | |
ServerAliveInterval 300 | |
TCPKeepAlive no | |
User git | |
mkdir vto-mirror-retail | |
cd vto-mirror-retail | |
git init | |
hub create -p luxdeepblue/vto-mirror-retail | |
git remote add origin https://github.com/luxdeepblue/vto-mirror-retail.git | |
git checkout --orphan master | |
touch README.md | |
git add --all; git commit -m "first commit" | |
git push -u origin master | |
git checkout --orphan gh-pages | |
git add --all; git commit -m "first commit" | |
git push -u origin gh-pages | |
git checkout master | |
cd .. | |
create-react-app vto-mirror-retail --scripts-version=react-scripts-ts | |
yarn add @material-ui/core | |
yarn add @material-ui/icons | |
git commit -am "added material" | |
git push | |
yarn add gh-pages --save-dev | |
git commit -am "added gh-pages" | |
git push | |
add to package.json : | |
"license": "UNLICENSED", | |
"homepage": "." | |
json -I -f package.json -e 'this.license="UNLICENSED"' | |
json -I -f package.json -e 'this.homepage="."' | |
add to package.json.scripts : | |
"predeploy": "yarn build", | |
"deploy": "gh-pages -d build -m \"[ci skip] github pages update\"", | |
deploy to gh pages: | |
yarn deploy | |
git tag v0.1.0 gh-pages | |
-- | |
mkdir vto-mirror-retail_release | |
cd vto-mirror-retail_release | |
git clone --mirror https://github.com/luxdeepblue/vto-mirror-retail . | |
hub create -p luxdeepblue/vto-mirror-retail_release | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment