Access | You will need to request and access a UBC GitHub organization first. Once you have completed setup, you can log in to GitHub. | |
---|---|---|
Cost | Free. | |
Bandwidth | Low demand on internet connections. | |
Canvas Integration | None. | |
Privacy | Verified by UBC’s Privacy Impact Assessment process. | |
Similar UBC-Supported Tools | N | GitHub is the only centrally supported tool for hosting repositories. However, other tools for computational assignments are also centrally supported. |
What can I use it for?
You can use UBC GitHub for a variety of assignments and collaborations:
- Sharing code and projects with course members
- Collecting and assessing coding assignments, projects, and labs
- Enabling student collaboration on group projects
- Allowing students to experiment with changing a project, without affecting the original version
This tool guide was last reviewed in October 2024 with version 3.12.10 of UBC GitHub.
A supported web browser
GitHub runs in your web browser and supports the latest versions of Chrome, Edge, Firefox, or Safari.
A UBC GitHub organization
Organizations in GitHub are group accounts where members (e.g., students in a course) can collaborate on projects together. UBC GitHub organizations must be requested and created through the LT Hub, as outlined in the accordion sections below.
Tips
- You can install the GitHub desktop application as an alternative to using the web interface. The GitHub desktop app allows you to work in environments without full internet access.
- You cannot create UBC GitHub accounts on behalf of another person, so students will need to activate their own accounts. Students can activate their GitHub accounts at any point, even before an organization has been created. However, students can only view and access the organization once it has been created.
Request and access a UBC GitHub organization for your course
Organizations in GitHub are group accounts where members can collaborate on projects together. UBC faculty and staff may request a UBC GitHub organization to use for a course. The organization will be created with a team automatically set up to synchronize all students in your course as organization members.
- Fill out our contact form with the following details:
- Your UBC CWL
- The course and section you want to add students from
- You will be asked to activate your account at the UBC GitHub Service page using your UBC CWL.
- After your account has been activated, log in to UBC GitHub with your UBC CWL. Logging in will complete the setup of your account.
- Once we activate your organization request, it may take up to 30 minutes to add your course students to the organization.
- Please instruct your students to create their own UBC GitHub accounts at the UBC GitHub Service page using their UBC CWL.
- Please note that your students may not be able to see the organization if they had activated their accounts before the organization is ready.
- Once your organization is ready, you will be able to do the following:
- Add unlimited collaborators and use the full GitHub features on public repositories (more limited GitHub features are available on private repositories).
- Grant different access levels of permissions for your organization and permissions for individual repositories.
- Create teams in your organization that reflect your course structure, such as student groups in your course.
Tips
- If you use the GitHub desktop application, you will need to follow a couple of additional steps to access the UBC GitHub version. Log in using the "GitHub Enterprise Server" option, then enter "github.ubc.ca" when prompted for an address.
- As the owner of a UBC GitHub organization, you will be able to create additional teams and manage repositories. Teams are spaces where select organization members can collaborate on projects; repositories are places for projects where files are stored and built on. You will have full access to all teams and repositories, regardless of their visibility setting.
- You can invite any UBC GitHub user to become a member of your organization, using their UBC CWL or their name. You can edit or cancel an invitation at any time before the person accepts.
Invite people to your UBC GitHub organization
As an owner of a UBC GitHub, you have the ability to invite new members into the organization, including co-instructors, teaching assistants (TAs), or other people at UBC. Please note that registered students in the course and section will automatically be added as members.
Everyone who joins your organization must have activated their UBC GitHub account and logged in to GitHub at least once.
- Log in to UBC GitHub with your UBC CWL.
- Click your profile icon in the upper-right corner, then click Your organizations.
- Under "Organizations", click the organization name.
- Click the People tab, then click Add member.
- Type either the UBC CWL or the name of the person you want to add, then click Add.
- If you cannot find the person, it means that they do not have a UBC GitHub account. They will need to request an account using our contact form.
- If prompted, enter your UBC CWL and password, and click Confirm password.
- Choose a role for the person and, optionally, add the person to any team in the organization.
- Click Add member to invite the person to join your organization.
Manage teams in your UBC GitHub organization
All organization members have the ability to create teams and add members to teams, regardless of their role. Teams are spaces where select organization members can collaborate with one another.
You can create standalone or hierarchical (nested) teams. Either approach can help you better manage access permissions for repositories, as well as manage notifications to alert groups of organization members regarding updates.
Everyone who joins your organization must have activated their UBC GitHub account and logged in to GitHub at least once.
- Log in to UBC GitHub with your UBC CWL.
- Click your profile icon in the upper-right corner, then click Your organizations.
- Under “Organizations”, click the organization name.
- Click the Teams tab, then click New team.
- Enter the name of your new team. Optionally, you can also add a description for this team.
- If you are creating a nested team, choose a "parent" team that the new team should be contained under.
- The “Team visibility” option is set to Visible by default. This setting means that the team can be seen by all organization members. Alternatively, setting it to "Secret" restricts the team visibility to only the members of the team and owners of the organization, although this setting also removes the nesting function.
- Click Create team.
- Log in to UBC GitHub with your UBC CWL.
- Click your profile icon in the upper-right corner, then click Your organizations.
- Under "Organizations", click the organization name.
- Click the Teams tab, then on the bottom of the page, click the team name that you want to add members to.
- Click the Members tab, then click Add a member.
- Type either the UBC CWL or the name of the person you want to add, then click Invite.
- You may be prompted to confirm the invitation by logging in again with your UBC CWL.
Tips
- Organization members who are assigned the “Maintainer” role have the same access level of permission to a team as an organization owner. They can manage team members and access team settings, as well as add repositories to the team.
- When you create a nested team, the nested (or child) team will inherit access permissions and notifications from the parent team. If you have multiple groups of students who need the same permissions and communication, nested teams can simplify management for you.
- You can send notifications to an entire team by mentioning the team's name with GitHub’s "@mention" feature. You can also manage how you receive GitHub notifications.
Create repositories for your GitHub organization
All organization members have the ability to create repositories within the organization, regardless of their role. Repositories are where files and folders are stored and collaborated on.
We recommend keeping your organization's repositories set to "private" visibility, so that only the organization owners and approved members can view them. Alternatively, if you wish for anyone with a UBC GitHub account to view a repository, you can set it to "internal". Please note that setting a repository to "public" will make it available to anyone on the internet.
- Log in to UBC GitHub with your UBC CWL.
- In the upper-right corner, click the plus icon, and select New repository.
- In the "owner" drop-down, select the name of your UBC GitHub organization.
- Enter the name and description for your repository.
- Adjust any other settings, and click Create repository
Tips
- Help identify your repositories by using README files. A README file is intended to give a brief overview of a project and is the first item displayed in your repository's home (code) page.
- You can document your repositories using wikis on GitHub. Wikis are useful for presenting in-depth information about your projects.
- By default, repositories cannot be viewed by all members of the organization; however, organization owners are able to change the repository access. You can also manually grant access on a per-repository basis. See the next accordion section for details on how to manage repository access.
Manage repository access in your UBC GitHub organization
As an owner of a UBC GitHub organization, you have the ability to change the roles and permissions associated with repositories for teams and individuals. If you would like to manage member access to different repositories, follow the steps below.
- Log in to UBC GitHub with your UBC CWL.
- Click the profile icon in the upper-right corner, then click Your organizations.
- Under "Organizations", click the organization name.
- Click the Settings tab, then click Member privileges from the left sidebar.
- Under “Base permissions”, choose the permission level you want to use as the default for all repositories in the organization, and confirm the change in the pop-up window.
- Please note the default permission level (or role) you set here will determine the minimum access your organization members will have for all repositories within the organization. Setting this option to anything other than "No Permissions" will result in all repositories being visible to all organization members, regardless of the repository’s visibility.
- Click Go to your organization profile in the upper-right corner.
- Click the repository name you want to set permissions for.
- Click the Settings tab, then click Collaborators and teams from the left sidebar.
- If prompted, enter your UBC CWL, then click Confirm password.
- Under “Manage access”, click Add people or Add teams, depending how you want to manage permissions.
- Type one of the following: the UBC CWL of the person, the name of the person, or the name of the team to add. Then select the correct person or team.
- Choose a role, then click Add person/team to this repository.
Tips
- Consider your assignment format and class size when assigning repository permissions. For example, courses oriented around collaboration may benefit from having a few main repositories viewable to everyone in the course, while courses focused on individual work may benefit from having a repository for each assignment submission, especially if they are large courses—this way, only the single student/assignment group and teaching team will have access to them.
- To further refine what organization members can do in a repository, you can also create custom roles. Custom roles are helpful if you want specific people in the course to only access and change what they need.
Where can I get more support with GitHub?
Technical support
If you have trouble with GitHub:
- Contact your faculty’s Instructional Support Unit as your first point of contact.
- Contact us for further assistance:
604 827 4775 or LT.hub@ubc.ca or visit the LT Hub online.
Student support
- Share the GitHub Documentation with your students, which include instructions on getting started with GitHub and links to videos.
- Help students learn how to use Git, the version-control tool used to interact with repositories on GitHub, by connecting them to the Git documentation.
Learn more
- For more how-to instructions, explore the GitHub Documentation.
- GitHub offers a series of interactive GitHub Learning Lab courses and GitHub live training.
- Find out more about repository languages used on GitHub and the Markdown language used on GitHub for formatting text.