Welcome to the Git and GitHub Training repository! This resource is designed to help you learn the fundamentals of Git version control and how to use GitHub for collaborative code development. Whether you're brand new to version control or looking to refine your workflow, this repository provides practical exercises, example code, and reference materials to guide you.
- About This Repository
- Getting Started
- Workshop Structure
- Prerequisites
- Key Topics
- Resources
- Contributing
- License
This repository supports interactive workshops and self-paced learning on the following topics:
- Version control with Git (basics and advanced concepts)
- Using GitHub for team collaboration
- Resolving conflicts and working with branches
- Best practices for open-source development
Materials include R scripts, markdown documents, and hands-on exercises.
-
Clone the repository:
- Either download the zip from GitHub by clicking on the
<> Codebutton - Or use the terminal
git clone https://github.com/ICON-in-R/git-and-github-training.git cd git-and-github-training - Either download the zip from GitHub by clicking on the
-
Explore the directories:
- Each week new material will be added, including the slides, made in quarto.
- Introduction to Version Control
- Basic Git Workflow
- Branching and Merging
- Working with Remotes
- Collaboration on shared folder or GitHub
- Resolving Conflicts
- Best Practices
Each session contains short presentations, live demos, and hands-on tasks.
- Basic familiarity with the command line or terminal
- Git installed on your system
- A GitHub account
- (Optional) R if you wish to run the R code examples
- Initializing local repositories
- Making commits and viewing history
- Branching and merging strategies
- Pushing to and pulling from remotes
- Forking, cloning, and pull requests
- Managing merge conflicts
- Collaborating with others using GitHub issues and pull requests
- Working with R projects in version control
- Git Book
- GitHub Docs
- Happy Git with R (especially for R users)
- Git Cheatsheet (PDF)
Contributions and suggestions are welcome! Please open an issue or submit a pull request.
Happy coding! 🚀