WebFaction
Community site: login faq

What I'd like to do is initialize as a git repo a static app that I'm already utilizing, then clone it to my local machine to make changes. I SSHed into my webapp directory, did git init, git add . , then git commit. Everything that is in that webapp's folder is now in the repository, but even after reading the docs a few times I can't figure out how to clone that repo to my local machine. I'm not sure what URL to use, or if I initialized the repo correctly, or if what I'm trying to do is even possible. Help?

asked 03 Dec, 13:45

arkholt's gravatar image

arkholt
111
accept rate: 0%


When you created the repo online, you gave it a name. So this command:

git clone http://www.mysite.com/mysite.git

should clone it locally.

Running git remote -v should show that it's a clone of your online repo.

permanent link

answered 03 Dec, 18:17

kjodle's gravatar image

kjodle
6316
accept rate: 33%

I didn't give it a name, I don't think. I was in the root directory for the webapp, which I wanted to make into a git repo, and did "git init".

(04 Dec, 06:03) arkholt arkholt's gravatar image

Giving it a name makes it easier to keep track of things, especially if you're using gitweb. Try git clone http://www.mysite.com/.git and see what happens.

(04 Dec, 23:22) kjodle kjodle's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×107

question asked: 03 Dec, 13:45

question was seen: 55 times

last updated: 04 Dec, 23:22

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM