Git Basics Pt2

Git Basics Pt2

·

1 min read

Clone

  • git clone : This command is for taking the repository into your local system into a new empty directory
  • git clone is used to create a clone/copy of the required repository.

Branches

image.png

  • git branch : lists all the branches in your repository

  • git branch -d : deletes a specific branch

  • git branch -D : Force deletes a specific branch

Remote repositories

remote repositories are versions of your project that are hosted on the Internet or network somewhere.

  • git remote add
  • git remote -v