0

I'm new to Aptana 3, and I want to clone a Git repository into a project sub-folder. The project is a WordPress installation located at /var/www/wordpress, and the repository is a WordPress theme located at /var/www/wordpress/public_html/wp-content/themes/mytheme. My workspace is /var/www. I'm using Linux.

If I select File > Import > Git > Git Repository as New Project, the resulting project includes the entire WordPress installation starting at /var/www/wordpress, even if I select the theme sub-folder.

I'm OK with this because it makes sense given that my workspace is /var/www, but I can't use Aptana 3 to commit/push/pull, etc. when the repository is imported this way. (None of the Git options show up under Team in the context menu.)

If I import the repository into its own folder, say, /var/www/mytheme, this works, but the obvious problem here is that I can't test the theme while I'm working on it unless I create a symbolic link like so:

ln -s /var/www/mytheme /var/www/wordpress/public_html/wp-content/themes/mytheme

Is there a better way to do this?

Chris
  • 13
  • 2

1 Answers1

0

I believe this can be helped by referring to an existing question on StackOverflow regarding cloning specific folders, I was looking for something similar with Aptana and found both, hope this helps. This answer was originally provided by Can Berk Güder in response to the below referenced question.

Option A:

git clone git@github.com:whatever folder-name

Option B:

move the .git folder, too.

Better yet:

Keep your working copy somewhere else, and create a symbolic link.

Reference: How do you clone a Git repository into a specific folder?

Community
  • 1
  • 1
AndW99
  • 552
  • 3
  • 12
  • Understandable from the perspective of stale references; I updated the answer and referenced the original poster who provided the answer. – AndW99 Oct 22 '15 at 10:00
  • "Keep your working copy somewhere else, and create a symbolic link." This is what I went with originally, glad to know others are using the same solution. Next time I run into this issue I will attempt the first option. Thanks! – Chris Oct 23 '15 at 15:18