GitHub is a widely used platform for source code management. It allows teams to collaboratively work on code and documentation, with both internal and external partners.
If you don't already have a GitHub account, please visit github.com and sign-up.
- Send a message to Steve or Jun to add you to the organization.
- You'll probably want to tweak your notification settings, specifically the
Automatically watch repositories
option. - You'll want to become familiar with a
git
client. Some options include:
- GitHub Desktop
- VS Code
- See VS Code's Working with Git for more information.
-
Do not store private or sensitive data in GitHub. This includes passwords, keys, personal data, private configuration data. If you think you pushed anything private to GitHub, consider it compromised and notify your manager.
-
Repositories should be public unless there is a compelling reason to keep it private. Starting with a public repo and making the source code open from the beginning is much easier than starting as a closed source project are then attempting to open source it when it's "ready". If you're unsure, ask your manager.
-
The Government of Canada position on Open Source is to open source code by default when possible:
-
Projects that are no longer maintained should be Archived instead of deleted.
-
Do not commit code directly to the main branch. The recommended practice is to create a feature branch and a pull request when your code is ready to be merged. Please read GitFlow for more detailed information.
-
Repositories should be given a useful name that decribes the project. For example,
terraform-module-eks-cluster
is more appropriate thaneks
. -
Repository names should be all lower case and use
-
instead of_