Configuring Git

  • To login in git username :- git config --global user.name "username"
  • To login in git email :- git config --global user.email "useremail"
  • To see the username in git :- git config --global user.name
  • To see the email in git :- git config --global user.email
  • To see all the configuration :- git config --global --list

Starting a repository

  • To make git repository :- git init
  • To see Status :- git status

Staging files

Git Stages(Flow)

GitStages

Git Log Commands

  • To see all the commits :- git log
  • To rollback to previous commits :- git checkout *hashcode*

Git Checkout Commands

  • To rollback to previous commit :- git checkout --filename

To create a new Branch

  • To create a new branch:- git switch -c your-new-branch-name

Pushing projects on Github

Git and Github Documentation

Posts to know more about Git and Github