Posts

Showing posts with the label git log

Working Locally with Git

Image
Hi, I am Malathi Boggavarapu and welcome to my blog. This tutorial describes how to create a local Git repository, adding and committing files to local repository, viewing the history of the commits, knowing the file changes made between two commits and also we discuss about Git ignore and so forth. I have a seperate post " Git Fundamentals " in my blog which explains everything about Git but i had broken them down to smaller sections to make it easy for everyone to follow. So let's get started. Working Locally with Git Creating a local repository, adding files and committing changes I have an empty directory GitFundamentals which i would like to change to local git repository. Let me explain the commands in the below image so that it would be easy to understand. git init - It creates .git directory which contains a repository and all of its metadata. I can add file to this repository by echoing "Hello, Git" to a READM