GIT

overview

Points to cover



  1. Git basic
  2. Undoing 
  3. Branching stratergy

GIT basics




  1. Setting up a repository 
  2. Inspecting a git repository





INSPECTING GIT REPO

  1. git status
  2. git log

I don't want these changes


  1. git checkout
  2. git revert
  3. git clean
  4. git reset

Branch


  1. git branch
  2. git checkout
  3. git merge

HANDS on WITH GIT HISTORY

  1. git commit   --amend
  2. git rebase
  3. git rebase  -i
  4. git reflog

Working with remote repo

  1. git remote
  2. git fetch
  3. git pull 
  4. git push

TAGGING



TAGGING CONT.



Setting repository



  1. git init
  2. git clone
  3. git config
  4. git add 
  5. git config

config and log examples

CONFIG


LOG

checkout

Viewing



CHECKOUT CONT.

FOR FILES

REVERT EXAMPLE



RESET EXAMPLE

Unstaging a file

RESET CONT.

Removing local commits

CLEAN EXAMPLE



commit --amend



REBASE



REBASE CONT.




REFLOG


Maintains the state when you walk to past


FETCH





branching STRATEGY



GIT

By apurva mayank