Git is to synchronise files between local machine and remote repository. I was quite confused in the beginning but eventually got the logic after trying again and again.