Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 988 Bytes

Git.md

File metadata and controls

38 lines (24 loc) · 988 Bytes

    GIT CONTROLS

  • git --version
  • git status
  • git init
  • git add .
  • git add 'index.html'
  • //add to staging area
  • git reset 'index.html'
  • //remove to staging area
  • git commit -m 'my message'
  • git push -u origin master
  • //push to master branch
  • git pull
  • //if any update in remote repository
  • git diff
  • //any updation or remove ,we can show here
  • git branch
  • //all branch show that present in local
  • git branch myNewBranch
  • //create branch
  • git branch -a
  • //show all branch list ,remote as well as local
  • git branch -D myNewBranch
  • //delete branch
  • git checkout branchName
  • //switching branch
  • git remote
  • git remote -v
  • //show url ,where fetch or push
  • git log
  • //all commit history
  • git clone -b master repoName
  • //cloning repository
    rm -fr .git
    //Removing git repo

This is all about Git Controls method