If you’re just starting to learn how to code, you’ve probably heard of a development tool called Git. If you’re not sure what that is, it’s simply a tool developers use to help build their code systematically and incrementally. Once you start using Git as a developer, it becomes indispensable—you’ll need it for all of your projects. It’s such a powerful tool that every company I’ve worked for has used it, and it’s incredibly helpful for developing code as a team.
Learning Git early in your programming journey is really important and will save you headaches. One reason it’s beneficial is that it helps you keep track of code versions. For instance, without Git, you might forget which version of your code you’re working on—are you on version 0.3.4 or 0.3.5? With Git, you can just check the log to see the current version.
Git also makes debugging easier. If a bug appears in your program, but you’re unsure when or why it happened, Git lets you revert to an older, bug-free version. You can compare the old and current versions, making it easier to pinpoint the cause of the bug.
The real value of Git is more apparent with complex codebases. You can look at the commit history to see how a program was developed over time. For complex code, Git helps ensure you don’t accidentally break something; if you do, you can always revert to a stable version.
Starting with Git early is also valuable for simple projects. It gets you into the habit of using Git, which is a key part of developer culture. When you eventually work with other programmers, they’ll likely use Git to collaborate on a project. Even if you’re not employed at a company yet, Git is essential for open-source projects or collaborating with other developers.
So, if you’re thinking, “Git sounds useful; how do I start?”—that’s what this video is for! I’ll guide you through the setup process, show you how to create a repository, and start developing your code within that repository.
Install git: https://git-scm.com/
https://www.reddit.com/r/learnprogramming/comments/z99mho/learning_git_early_will_save_you_headaches/
https://github.com/henrikmdev/gitPractice
Thank you for watching, and happy coding! 💻🧡
-Henrik