Cloning new repo in git

In this article, let us see how to clone git repository. Below commands will clone the remote git repository on your local machine.
  • git clone [email protected]:reply2sagar/gitproject.git : It uses the SSH protocol. Ensure that you have set up SSH keys properly before using this protocol.
  • git clone https://github.com/reply2sagar/gitproject.git : It uses the https protocol. You will have to enter user Id and password for authentication.

Setting up new project

You will need to follow below steps to setup typical nodejs project in vscode.
  • Install nodejs, git and vscode
  • Create ssh keys using gitbash
    • ssh-keygen -t ed25519 -C "[email protected]"
    • $ eval "$(ssh-agent -s)"
    • ssh-add ~/.ssh/id_ed25519
    • send me public key
  • git clone [email protected]:reply2sagar/awesome-tutorials.git
  • cd .\awesome-tutorials
  • npm i
  • npm run dev
Complex problems, Simple Solutions