More information about git log command

As part of home task part 2, we were asked to read about git log command. So this blog post is dedicated to that. To get more info about git log command I had gone through Git pro book available at https://git-scm.com/book/en/v2/. From this book I had followed chapter https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History to study more about git log command.

When git log is used without any argument, it displays all previous commits in reverse chronological order.

Introduction to Git and seven rules of great Git Commit Message

As part of summer training at #dgplug, Sayan took our basics to Git session. We were introduced to basics of VCS(Version Control System), need to use a VCS and introduction to Git.

These were some of commands we learn during the session conducted over the course of two days,

  • git init is used initialize Git repository
    $ git init
  • git config to used to configure various Git configuration using below command one can configure their Name and Email globally for Git.
    $ git config --global user.name "<Name>"
    $ git config --global user.email "<email>"
  • git add is used to add files to stage area in Git.
    $ git add helloworld.txt
    $ git add .
    $ git add -u
  • git status to see status of you Git repository. Whether there are changes that are still not added to stage or there are changes which are added to stage but not committed.
    $ git status
  • git commit is used to commit your files from stage.
    $ git commit -m "Snapshot 2"
  • git diff is used to difference between current state and previous state.
    $ git diff
  • git log is used to get commit logs.
    $ git log
    $ git log -2
    $ git log -p -2
    $ git log --stat

As part of home task we were asked to read https://chris.beams.io/posts/git-commit/, which explains How to write a Git commit message.

Birthday Week 2019

So another Birthday gone as-usual. Although I am not a big celebrator expect last where we had a trip to Rishikesh on my birthday PS: I am yet to write that post.

My celebration to birthday most part has only dinner with family. We go to a fancy hotel have some food and come back. Its almost like this has become a tradition to celebrate birthday this way.

This post was to be published on 19th May, instead I am writing now because of my laziness I don’t often write due to fear of writing or fear of making mistakes while write. Although I plan to write and read more. :)

#readingeveryday 2

For #readingeveryday and link Today I dedicated 15 mins to read documentation or pym python book.

#Readingeveryday Day-1

I have been having difficulties in making reading a habit so my friend Jason, introduce to something which is called #readingeveryday challenge to start reading here is the link. So this post and goes to that today is the day 1, right now as I am starting I am reading 15 min a day. Being a slow Reader I was able to read 6 pages of the book which I am currently “Think and Grow Rich” by Napoleon Hill.