What is Git?
Git is a piece of software that handles version control. Version control is a system that records all changes done to files. Git specializes in script and text-like files, as it records exact changes done to individual lines, but works with any type of file as well.
As the files are modified, you get to create commits - "checkpoints" for the progress you're making. These checkpoints can be used in a number of different ways.
Why is Git useful?
Commits form a perfect timeline of your project, showing when exactly was each file added, last changed or deleted. The timeline isn't just pretty to look at, some of the ways we can use it is:
- Reverting your progress to any of the previous commits
- Developing features separately from the main project
- Analysing code files to see when was each line last modified
- Avoiding situations like this
Projects utilizing Git can be uploaded to websites like GitHub or GitLab, to provide even larger amount of functionality:
- Almost instantaneous ability to backup your project
- Sharing your project with others
- Organizing collaborations and group projects
- Automating code stuff with functions way too advanced for myself to use
And much more. If this got your attention, follow the links below!
Don't skip Part #0 just because it's "just" the installation process! The installation itself is surprisingly extensive and could make you feel overwhelmed right way.
Working with Git:
- Part #1 - Creating your first repository and commit in Git Bash
- Part #2 - Viewing history with log and checkout, reverting changes with reset
- Part #3 - Switching to GUI with GitHub Desktop
- Part #4 - Working with branches, merging branches and merge conflicts
- Bonus Part - How I prepare a repository for a Ren'Py Project: initial commits and the .gitignore file
Working with GitHub:
The final state of the repository created over the course of the tutorials can be found here, on its GitHub page.
If you have questions, I'll gladly answer them on my Discord server.