Git commands 

  •  git reset –hard origin/master     ==== to overwrite your files with repository files
  • git reset –hard origin/master     ==== to overwrite your files with repository files
  • git add –all                       ==== to add files to index (to stage your changes)
  • git reset                           ===== to remove files from index (to unstage your changes)
  • git commit -m “your commit message” ==== to commit to your local repository
  • git pull origin your brachname ==== to pull the code from remote repository
  • git push origin your brachname ==== to push your code to remote repository.
Advertisements