My question is really innocent. I've been reading up on git, and I already know the basics like pushing and pulling and creating branches and so on. My mentor told me that the proper way to work with git is to pull the resources, create a new local branch, transfer and edit that local branch and once you're done, go back to master branch and merge it with your local branch. Now my question is, what exactly happens behind the scene?
I mean, when git creates a local branch, does it create a copy of the master branch that you can edit? If it does, where are these copies located?
If by any chance I mess up on my local branch, how do I revert back the changes(let's say for example, I want to go back to the way it was when I pulled the master)? Is it just a simple matter of going back to master and deleting the local branch?
I suppose that the reason why people call it version control is because of the branches, which I think...Represents the version. Am I correct?
Why is the master called a branch? Shouldn't it be a trunk? okay that just a very dumb question, ignore #4... hahaha!
Answers to my innocent childlike questions shall be appreciated. <3 <3 <3