Using Git/Github
Git and Github are important tools for collaborative coding projects. Here’s a basic guide:
Git Basics: Git is a version control system that helps you track changes in your code. You need to have Git installed on your computer. Learn a few commands like git clone (to get a copy of the project), git pull (to get the latest changes), git push (to share your changes), and git commit (to save your work).
Github: Github is a platform where we store our code, which is based on Git.
Cloning a Repository: To start working on a project, use git clone https://github.com/trigaten/Prompt_Systematic_Review.git to bring the project to your computer.
Branches and Pull Requests: When you want to change something in the project, create a “branch.” It’s like creating a separate workspace for your ideas. After you’re done, you can ask others to review your work by making a “pull request.” It’s like getting feedback from others before your changes become part of the main project.
Commit Messages: When you make changes, write clear and simple messages about what you did. Use Conventional Commits.
If you have any questions, feel free to ask me or your sub-team leader.
For more help, you can check out the Github Help website: GitHub Quickstart.
Note that our Github repo has a CI pipeline, which automatically runs tests, style checks, and more when you request you merge new code. This helps ensure that broken code does not get merged in.