Git Overview


Eager to start Git Bash, huh? Wait!✋

Let’s have a look at this diagram which shows the data flow in Git, thought it would be very useful for you before executing any git commands.



Figure 1: Git Data Flow Diagram


A COMMIT is basically a snapshot. And all the commits are stored in your local repository.

Before a commit, everything to be committed must be ADDed to the staging Area. And once a commit is made, the staging area is cleaned.

PUSH is when you wanna upload code to the remote repository

PULL synchronizes your local repository with the remote repository

You'll get much familiar with the above terms as you go through the next pages of the tutorial.

Hence you can choose what you want to share with the other developers and most importantly you are not depending on a centralized server. 


References: https://commons.wikimedia.org/wiki/File:Git_data_flow_simplified.svg




No comments:

Post a Comment