Git for Beginers
Git basically used three directory to perform its operation.
The first one is the Working Directory,staging Directory and third one is the Git Repository.
Now the Working Directory is the one that uses the checkout of project,the basic code that is present.
Staging directory is the place where we can think that the all the changes file that has to be moved to Git has to be kept.
And the third one is itself the Git place which is the last repository for the files and this is the repository that is accessible to one and all the team member of the team.
Some other terms are also associated with Git for instance
Blob---this is generally the files with all the versioning done on it.
Tree----Tree is the object which represent a repository.It hold the blob as well as sub directory as well.
Branch----Branch is the copy of master repo. and Branch is usually made for doing or adding some new functionality in the code.Once the feature is availble we merge the branch with master branch and then delete the branch.
Clone----Clone it the operation to make a duplicate copy the master or branch on our local system.Once the checkout is done,we can commit as number of changes as needed and the role of net will come once the synchrnize thing is needed.
Pull----Pull operation is the one which is same as update operation in svn.
Push----Push is the operation which is same as commit in svn.
To get all the git setting of your system,use the following command
git config --list
a

No comments:
Post a Comment