e-learning
Basics of using Git from the Command Line
Abstract
Version control is a way of tracking the change history of a project. Even if you have never used a version control tool, you've probably already done it manually: copying and renaming project folders ("paper-1.doc", "paper-2.doc", etc.) is a form of version control. Within bioinformatics (from research, to development, to sysadmin) a lot of us are using git
as our primary method of source control for everything we do: notes, slides, tutorials, code, notebooks, ansible, system configuration, and more.
About This Material
This is a Hands-on Tutorial from the GTN which is usable either for individual self-study, or as a teaching material in a classroom.
Questions this will address
- How can I start tracking my changes with git?
- How do I commit changes?
- How can I undo a mistake?
Learning Objectives
- Create a repository
- Commit a file
- Make some changes
- Use the log to view the diff
- Undo a bad change
Licence: Creative Commons Attribution 4.0 International
Keywords: Foundations of Data Science
Target audience: Students
Resource type: e-learning
Version: 6
Status: Active
Prerequisites:
CLI basics
Learning objectives:
- Create a repository
- Commit a file
- Make some changes
- Use the log to view the diff
- Undo a bad change
Date modified: 2023-11-16
Date published: 2022-06-16
Scientific topics: Software engineering
Activity log