• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Git Clone

November 2, 2012

Git Clone is a command used to make a copy of a Git repository to your local drive. It creates a new directory and creates a clone of the repository on the local drive. In the example below, a clone of an existing repository from Github is placed on the local computer. You initiate a clone by typing the following command on the Terminal.

// old way. does not work anymore.
git clone git@github.com:username/Project.git
 
// new way. use this from this point on.
git clone https://github.com/username/Project

// old way. does not work anymore. git clone git@github.com:username/Project.git // new way. use this from this point on. git clone https://github.com/username/Project

Filed Under: Git Tagged With: clone

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023