- Description
- Learning Outcomes
- Assignments
- Contacts
- Delivery of the Learning Module
- Schedule
- Requirements
- Resources
- Folder Structure
This module explores version control with Git and GitHub, and how it connects to the ethical discussions of reproducibility. Participants will set up Git and create and use repositories, including recording, viewing and undoing changes. You will also learn how to create branches and collaborate with others with shared branches. This module also introduces more advanced commands such as de-bugging and history editing.
Throughout the entire module, participants will learn how to problem solve through live coding. You will also learn about reproducibility and how to centre it within your work. ants will be able to:
- Use Git to collaboratively save, restore, and update work through version control
- Explain the difference between Git and GitHub
This module has two types of activities.
- Assignments are mandatory, and form part of your evaluation. earning Support!
Participants should review the Assignment Submission Guide for instructions on how to complete assignments in this module.
Assignments are typically due on the Sunday following the module's live learning session.
- [Git Assignment](./02_activi [email protected]
- *Pedram Asli
An issue is a way to track tasks, enhancements, bugs, or other requests in a GitHub repository. It allows users to discuss and manage project work.
A pull request (PR) is a request to merge code changes from one branch into another. It allows for code review, discussion, and automated testing before integration.
- Push your branch with changes to GitHub.
- Go to the repository on GitHub.
- Click on the "Pull requests" tab.
- Click "New pull request."
- Select your branch and compare it with the base branch (e.g., main).
- Add a title and description, then click "Create pull request."
- Go to the repository on GitHub.
- Click on the "Settings" tab.
- Click on "Collaborators & teams."
- Under "Collaborators," type the username of the person you want to add.
- Click "Add collaborator" and then confirm.
Git is a version control system used to track changes in code. GitHub is a platform that hosts Git repositories online, allowing for collaboration and sharing.
The git diff
command shows the differences between changes made in the working directory and the index or between two commits.
The main branch (often named main
or master
) is the default branch where the stable and production-ready code is usually maintained.
h. Besides our initial commit if it is a new repository, should we directly push our changes directly into the main branch?
It is generally a good practice to create separate branches for different features or fixes and use pull requests to merge changes into the main branch to ensure code review and maintain stability.