tund1 stuff!
# set your name/email in git
git config --global user.name "John Doe"
git config --global user.email "[email protected]"
# use vs code as default editor
git config --global core.editor "code --wait"
- nice git UI -> https://www.sourcetreeapp.com/
# list git repo remotes
git remote -v
# add new remote
# name=ops
# location=https://github.com/eritikass/kta-19e_tund1.git
git remote add ops https://github.com/eritikass/kta-19e_tund1.git
## each time you want to reset
# fetch info from ops remote
git fetch ops
# reset local to ops remote master branch
git reset --hard ops/master
# git force push to remote (will override remote)
git push -f
init using (with cmd
in windows)
node node_modules\eslint\bin\eslint.js --init
- select airbnb rules ( https://github.com/airbnb/javascript )
Add Husky to enable testing/linting for git push/commit.