GatsbyJS
npm install -g gatsby-cli
gatsby new <PROJECT_TITLE>
GIT
Initialize and upload to github repository
git init
git add origin <GITHUB_REPOSITORY>
git push origin master
Make a new branch
git branch <NAME_OF_BRANCH>
git checkout <NAME_OF_BRANCH>
git merge <NAME_OF_BRANCH>
Useful commands:
git log --oneline
See the commit statusgit branch -a
See all branches and which we are using at the momentgit branch -d <NAME_OF_BRANCH>
Delete an merged branchgit branch -D <NAME_OF_BRANCH>
Delete an unmerged branchgit checkout -b <NAME_OF_BRANCH>
Install SASS
npm install -save node-sass gatsby-plugin-sass
- Add
plugins: [
gatsby-plugin-sass],
togatsby-config.js