Skip to content

Instantly share code, notes, and snippets.

@alanhay
Created October 8, 2014 17:48
Show Gist options
  • Select an option

  • Save alanhay/975471cf0728a14f3610 to your computer and use it in GitHub Desktop.

Select an option

Save alanhay/975471cf0728a14f3610 to your computer and use it in GitHub Desktop.
Clone an Existing Repository to a new Location and Import to Eclipse
Create a new Empty Repository in GitHub.
From the root of the local git repo:
>> git clone https://github.com/alanhay/spring-data-jpa-bootstrap.git .\spring-data-jpa-scratchpad
Update the remote 'origin' to point to the new empty repo:
>> git remote set-url origin https://github.com/alanhay/spring-data-jpa-scratchpad.git
Push the cloned repo up to the remote Repository:
>> git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment