Please note that Gatsby CLI (npm install -g gatsby-cli
) should be installed on your system in order to run gatsby commands.
- Clone this repo to create your project and navigate to it (replace my-project with something telling)
$ git clone https://github.com/arnars/gatsby-remotely-tailwind-starter/ my-project && cd my-project
-
Create new repository on our GitHub page called my-project
-
Modify
package.json
to fit your needs. -
Install project dependencies
$ npm
- Make your first commit
$ git add :/ -A && git commit -m "First commit"
- Push to master
$ git push origin master
- Branch out and start developing
$ git checkout -b my-branch && npm run dev
- Clone the repo, then install the required node modules using
npm
.
$ git clone https://github.com/arnars/my-project.git && cd my-project && npm install
- Branch out and start developing
$ git checkout -b my-branch && npm run dev
Branching is inspired by Gitlab Flow.
A few pointers:
- Feature branches (commits), Master branch (PR) and Production branch (PR)
- Always do work using feature branches, no direct commits on master or production
- Always perform code reviews via pull requests before rebasing onto master
- Always delete feature branches after rebasing onto master
- Pushed commits are never rebased
- Everyone starts from master, and targets master
- Fix bugs in master first then rebase via pull request to production
- Do not use a GUI for your git'ing, unless you are certain that the above is possible to do
Commit messages is based on The Seven Rules of a Great Commit Message
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
The above 7 rules should always be applied. If working on anything that is not a feature, please use one of the following commit type prefixes:
[fix]
(bug fix)[docs]
(changes to documentation)[cleanup]
(removal of obsolete files or code)[refactor]
(refactoring production code)[chore]
(updating gulp tasks etc; linting)
E.g. [chore] Versioning
When committing features, omit any prefix and just write a telling subject line.
Do not ever amend a commit that has been pushed public. Otherwise feel free.