This tutorial covers the basics of the Git revision control tool in combination with the popular GitHub web platform. It should be useful to anyone wanting to learn about Git and GitHub but is more specifically designed for researchers.
It will help you:
- Increase your online presence
- Share your code and embrace Open Science
- Collaborate with other researchers
- Code from anywhere
- Use best practices for coding and analysis
- Structure your code and projects
- Create basic web pages to show your analyses
- Create easy documentation and tutorials
- Show that your projects are alive
- Track code changes and versions
Git and GitHub can help you accomplish the above. Like for any tool, you will need some time to become proficient but this tutorial is designed to get you started.
After going through this tutorial, you will:
- Understand what revision control is about
- Know the basics of how to use Git and GitHub from the command line
- Be able to start using GitHub to share your code and collaborate
Use the links below to navigate to each section within this tutorial.
- What is revision control?
- How can revision control help you?
- Why choose Git and GitHub?
- An overview of GitHub
- Getting started
- Overview of Git
- Graphical Interface vs Command Line
- Installing Git
- Setting up Git
- Creating a new project
- Downloading a repository from GitHub
- Using the basic Git workflow
- Visualizing the project history
- Traveling in Time
- Using markdown in your README.md
- Telling Git to ignore certain files
- Getting remote changes
- Forking and pull requests
- Working with branches
- Creating aliases for common Git commands
- Conclusion
- Resources
GitHub Tutorial by Eric Normandeau is
licensed under a
Creative Commons Attribution
4.0 International License
.

