Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 7.11 KB

README.md

File metadata and controls

57 lines (48 loc) · 7.11 KB

About

This repo stores documents related to the Sleep Health In Perinatal Care (SHINE) Project, funded by National Health and Medical Research Council (NHMRC) Clinical Trials & Cohort Studies Grant. SHINE is a collaborative project amongst Monash University Sleep and Mental Health Laboratory (Lead), Stanford University (USA), Monash Health, and the Royal Women's Hospital. It studies changes in sleep and wellbeing across pregnancy and the postpartum years, and evaluates interventions for improving sleep during this important period for Australian families.

To make the research process transparent, documents in working progress are made publicly available via Creative Commons Attribution-ShareAlike 4.0 International CC BY-SA 4.0 . Briefly, it is free to share or adapt content in this repo as long as you credit the source and make the resulting content open access.

Questions or comment: bei.bei@monash.edu

Read-me-first for staff

Checks and training

Systems to access

Git

Markdown

Files, formats, and naming conventions

  • IMPORTANT: This repo is open to the public. Do not commit personally identifiable information to this repo.
  • Use plain text (e.g., *.md, *.txt, *.R, *.Rmd) as much as possible to allow detailed version control. Only use other formats (e.g., *.docx, *.pdf) when necessary.
  • Stick to strict folder/file naming convention. Problems with folder/file naming could lead to data loss. Read this link here. Do not use special characters, period, or spaces. You can use - (dash) or _ (underscore) instead. Try to use lowercase only, especially folders.
  • R object naming conventions are different from folder and file naming. See this R code convention. In naming R objects, such as a data.table or variable, period . (not _) as a separator is the convention. Please also check out the File Names and Identifies sections of the link above.

How to work with a repo?

  • Before you start, please learn basic git, and git workflow.
  • The main branch is usually a stable version.
  • When you work on a specific issue, make a branch from the main, and send pull request to merge your commits into the main.
  • Branches can come and go. You can create as many branches as you need for working on specific sections, and once the changes you made are merged back to the main, you can delete them. Make a new branch when you work on the next issue.
  • Please squash your commits into a single one before sending pull request. This helps the reviewer view only one set of differences.
  • IMPORTANT: each time BEFORE you start working on your branch, make sure you fetch and merge any changes that occurred.

What is .gitignore?

  • It is a (usually) hidden file that can be opened using any text editor.
  • It is helpful to turn on "always show hidden files" to see all files being committed to a repo. Google how to do this and turn this on.
  • .gitignore contains files and directories that are ignored by git. This is very helpful for items like private notes, messy temporary hidden files, or sensitive data. Adding these items to the .gitignore file will tell git to automatically skip them, so they will not be committed to Github server online, or to collaborators.
  • A frequent use case is /data line being part of .gitignore. This way, we can store data locally in our repo without committing them to be shared with others.