Git Terminology

Git Version Control

I continue to have a hatred of Git and GitHub purely due to my own ignorance and lack of comprehension. Let’s try to overcome this prejudice with a bit of education!

  • master - the repository’s main branch. Depending on the work flow it is the one people work on or the one where the integration happens
  • clone - copies an existing git repository, normally from some remote location to your local environment.
  • commit - submitting files to the repository (the local one); in other VCS it is often referred to as “checkin”
  • fetch or pull - is like “update” or “get latest” in other VCS. The difference between fetch and pull is that pull combines both, fetching the latest code from a remote repo as well as performs the merging.
  • push - is used to submit the code to a remote repository
  • remote - these are “remote” locations of your repository, normally on some central server.
  • SHA - every commit or node in the Git tree is identified by a unique SHA key. You can use them in various commands in order to manipulate a specific node.
  • head - is a reference to the node to which our working space of the repository currently points.
  • branch - is just like in other VCS with the difference that a branch in Git is actually nothing more special than a particular label on a given node. It is not a physical copy of the files as in other popular VCS.

Courtesy of this article here

Also – someone told me that…

Branch is like “Save As”

…which might be helpful to remember

And finally, here is yet another ‘beginners guide’ to Git 

3 Replies
  • jeyakarthika

    Neat explanation.. :)

    • TracyMu

      It’s good isn’t it? Well, I still find Git a bit confusing, but we have to use it in our course to get all the course work and upload our homework and assignments, so hopefully soon I will be at one with it ;)

      • jeyakarthika

        Am sure you will rock it :) I find it confusing too sometimes.. But, the TryGit from Codeschool was quite helpful.