1.To add single file in the git local repository.
$ git add

  • Add a multiple files in git repository.

    $ git add .

Image description

2.The git log command displays all of the commits in a repository's history.
$ git log

Image description

3.The git branch command lets you create, list, rename, and delete branches.
It doesn't let you switch between branches or put a forked history back together again.
$ git branch

Image description

4.The checkout command tells Git which branch or commit you want your changes applied.
$ git checkout

Image description

  1. The git status command displays the state of the working directory and the staging area.

Image description

  1. the git commit command to capture the state of a project at that point in time.
  2. Git Snapshots are always committed to the local repository. $ git commit -m""

Image description