Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 730 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 730 Bytes

Basic git commands

  1. git config --global user.name "Tejas" //To set your name
  2. git config --global user.email "[email protected]" //To set your E-mail ID
  3. git config --list //gives list of existing config settings.
  4. git clone // To download/clone entire repo
  5. git status //To know stages of files. git uses three stages: Unstaged, staged and committed.
  6. git pull //Sync repo from github to computer
  7. git push //Sync repo from computer to github
  8. git add //To stage file status
  9. git add . or git add .a //To stage all file status'
  10. git commit -m "message" //To commit your code(Locally) with message.
  11. git init // Only if you are creating new offline project

...

.. git help // For more commands