git logthis is used to look at the project history and what we have done so far.git log --stat --summarythis is used for viewing summary and stats about each commit done so far.
- Run this command
git branch, and you will see- *master
- and more branches will be listed depending on the repo
- To create a new branch run
git branch test-branchand rungit branch- *master
- test-branch
- to switch to a branch, use
git checkout <branch-name>, and the currently active branch will be indicated with*<branch-name>when you rungit branchagain.