Create or copy repositories (init, clone)
How to initialize a new repository
Create a new directory for your code, and then initialize it as a Git repo:
mkdir my-repo
cd my-repo
git init
Or you can create the directory and initialize it as a Git repository in one command:
git init my-repo
How to clone an existing repository
git clone <URL>
You can get the repository URL from the GitHub or Bitbucket interface. For example:
git clone git@bitbucket.org/nsidc:git-training.git