Meet your new friend — Git
Git is a powerful tool, that you need to know if you want to be a software developer. It will save you a lot of trouble when working on projects. It doesn’t matter, how big is your project, or how many people are working on it. Even if you are building something on your own, git can still come in handy.
But what is Git?
Git is a version control system. It means that it tracks changes in your project. You can see what changed in your code and who made those changes. Git also allows you to go back to previous versions of your code.
Go to this website and download git.
If you have a Mac you can download it from this link. After installing it’s ready to use!
To use git you need to know specific commands. Here are some common commands:
git init — create a new repository
git-commit — Record changes to the repository
git pull — fetches and merges changes on the remote server to your working directory.
git push — sends the committed changes of master branch to your remote repository.
How git works?
If you want to learn how git works and how to use commands you can go to this website:
Learn Git Branching
An interactive Git visualization tool to educate and challenge!
The two common places to host your repositories for your projects are Github and Bitbucket. You can use both, they have free plans and are easy to use.
In the next article I will show you how to use git, create repository on Github and how to connect it to your Unity project.