DCU Library | Digital Humanities Workshops | Intro to Version Control with Git

Version Control with Git

What is Version Control?

Version control is a name used for software which can help you record changes you make to the files in a directory on your computer.

It can be useful to keep track of when you made changes to your own work and when, and without getting into this situation:

“Piled Higher and Deeper” by Jorge Cham

Why Should I Use It?

Version control software and tools such as Git and SVN are often associated with software development and did originate from that community. But version control isn’t just for code. It’s for anything you want to track.

For example, using Git to manage a writing project enables you to view multiple drafts, see differences between those drafts, roll back changes and if you want to you can then share your work with others on GitHub.

So at its most basic level, version control software helps us register and track sets of changes made to files on our computer.

Benefits of using version control


What are Git and GitHub?

We often hear the terms Git and GitHub used interchangeably but they are slightly different things.

Git is a widely used version control system. It is a free, open source tool that can be downloaded to your local machine and used for logging changes made to a group of files (referred to as a “Git repository” or “repo” for short) over time.

GitHub, on the other hand, is a website for hosting and sharing Git repositories. It offers a web interface and functionality for working with such repositories.

So Git and GitHub are related, but different. You can choose to

  1. use Git by itself to track changes and resolve conflicts or
  2. use GitHub to host a project that users can collaborate on or to publish it

Git will preserve the original metadata as well as all edits. GitHub will facilitate discussion about what changes should be made, who should make them, and why.


💡 Key Points:

✅ Version control helps track changes to files and projects, like an unlimited ‘undo’

✅ It can be useful for both individuals and groups of people

✅ Git and Github are not the same

Back
Next