1.To add single file in the git local repository.
$ git add
-
Add a multiple files in git repository.
$ git add .
2.The git log command displays all of the commits in a repository's history.
$ git log
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
4.The checkout command tells Git which branch or commit you want your changes applied.
$ git checkout
- The git status command displays the state of the working directory and the staging area.
- the git commit command to capture the state of a project at that point in time.
- Git Snapshots are always committed to the local repository. $ git commit -m""
Top comments (0)