GIT is an amazing code versioning tool. Well if you are new to GIT and wondering how to clone GIT repo locally to new folder or to the exising code folder.
Humm… Here are two methods, use according to your need.
Method1: Existing project
- Step 1: Switch to your repository’s directory
cd /path/to/your/repo
- Step 2: Connect your existing repository to Bitbucket
git remote add origin git@github.com:danyal14/someProject.gitgit push -u origin master
Method2: Starting from scratch
git clonegit@github.com:danyal14/someProject.gitcd testecho "# My project's README" >> README.mdgit add README.mdgit commit -m "Initial commit"git push -u origin master
Thats it and you are good to go.


