Skip to content

Latest commit

 

History

History
87 lines (62 loc) · 7.21 KB

File metadata and controls

87 lines (62 loc) · 7.21 KB
description tags
A list of tips, tricks and best practices for using GitHub as a code repository for government projects.
GitHub
cheatsheet
open source
code repo repository
license
application development
guidelines

"Working in github.com/bcgov" Cheatsheet

This github.com/bcgov Cheatsheet covers:

  • a few things to help when you are just starting out
  • things to touch base with every time you open or contribute to repository (as a BC Government employee)

All BC Government employees working in github.com/bcgov should be familiar with the full BC-Policy-Framework-For-GitHub

Joining github.com/bcgov

  • Create a GitHub account with your work email and "Province of British Columbia" as the company (optional)
  • Enable two-factor authentication for your GitHub account
  • Join the BCGov Organization (follow these instructions)
  • Make sure you have Git installed on your computer

Some Resources for Learning Git & GitHub

Creating a Repository (also called a "repo", basically a project)

ALL github.com/bcgov Repositories

How to License the Contents of a Repository

  • Ensure authority to LICENSE the code and other non-code content in the repository
  • Choose a LICENSE for your code (.md files are considered code). The default is the Apache 2.0 LICENSE
  • Apply the Apache 2.0 LICENSE in 1-2-3 easy steps:
    1. Attach appropriate LICENSE file directly in the repository
    2. Add the boiler-plate Apache 2.0 LICENSE to the the bottom of your README.md
    3. Add the boiler-plate Apache 2.0 LICENSE to the comments header of every source code file
  • Choose a license for any other content (e.g. docs, wikis and non-code stuff) —the default is Creative Commons Attribution 4.0 International—and add to the footer of your README.md
  • Repositories can have multiple licenses, for example if there is a mix of code and non-code or if the repo contains open datasets under more than one license

Privacy, Security & Intellectual Property/Copyright

Approval Requirements

  • Approvals and minium requirements are set out in the Open Development Standard (pages 14-15)
  • BC Government employees are responsible for adhering to any Ministry-specific approvals for working in GitHub

Appropriate Use