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
Posted in: Git

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s