git TutorialIntroduction Installing Git Understanding Git architecture Initializing the new Git respository Cloning new Git repository .git directory in Git repository Viewing Git configuration First time Git configuration Using SSH keys with Git Checking Git status Adding files into staging area in Git Committing changes to the local repository Ignoring files using .gitignore Viewing the history of commits Viewing the file contents in working directory, staging area and repository Viewing difference between files Viewing the history of files Git revert Git Reset git reflog Creating and switching to new branches in Git Viewing existing branches Merging branches Resolving conflicts Rebase Deleting branches Renaming the branch in Git Push Pull Stashing the changes in Git Tags in Git Patches in Git Creating new repository on GitHub Pushing local repository to remote repository like GitHub IntelliJ IDEA
Cloning new repo in gitIn 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 projectYou 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
Web development and Automation testing