Hi there. I am interesting in access a sandbox project for testing and examining in order to aid in another project I am working on.

I have never used git before but installed a command line app for my mac terminal. I set up the drupal account, and used a supplied git clone command I pulled from a sandbox i want to access.

I'm a little confused, though. I realize that you are supposed to use git commands to build new drupal projects, ie. creating README.txt files, directories, etc. But is there a way to download/upload local directories/files? I really just want to download a particle sandbox project so that I can examine the scripts in BBedit locally. Is that possible?

Comments

ruralrooster’s picture

doh! I found it. it saved to my local user folder

ruralrooster’s picture

Also found that drupal.org/project/xxxx/git-instructions contains the info i wanted (with xxxx being project number)

gopisundar’s picture

Hi,
Can u please share me how u downloaded a sandbox project.
thanks in adavnce

ruralrooster’s picture

you have to access the git server either thru a command line or git client. the git access clone commands are supplied on the sandbox project pages. Set up your git profile info through your drupal profile settings.

kerrycurtain’s picture

Expanding on the replies above...the following finally worked for me as a beginner (after being perplexed about the problem for a number of weeks):

1. Install and configure Git
2. Run the Git access clone commands from the sandbox project page
3. Locate the file on your local drive - for me it was under C:\Users\Kerrys
4. Copy the file and paste into the relevant site file - mine was in C:\Libraries\.....\drupal\all\sites\modules
5. Go back to the local host site, open modules and like magic you will see the module there
6. Check the box to enable the module

Hope this saves you some time!

MakeOnlineShop’s picture

Thank you for your clear explanation !

It helped a lot, but I wonder why drupal things have to be so complicated !!!

Why not let people download the file on drupal.org as usual ?

Even if I am used to it and like it I really understand why drupal will never be first choice for 90% of people who choose a CMS in this world...

bojanz’s picture

Because sandboxes contain code not meant to be used by people who find Git difficult.

payamspot’s picture

Thanks kerrycurtain

vulfox’s picture

I'm no stranger to git. I keep getting error 403 when trying git clone

I found clone link from: http://cgit.drupalcode.org/sandbox-rkimball-2340269

and tried git clone git://git.drupal.org/sandbox/rkimball/2340269.git

and get

Cloning into '2340269'...
fatal: unable to access 'https://git.drupal.org/sandbox/rkimball/2340269.git/': The requested URL returned error: 403

The repo don't seem to be private as I can browse around it in browser. No download snapshot link in site..

supriyarajgopal’s picture

Hey kerrycurtain,

Thanks for the step-by-step instructions. It helped install a sandbox project easily!

Regards,

Supriya Rajgopal

Anonymous’s picture

Good instructiones, I'd like to point out to step 3:

3. Locate the file on your local drive - for me it was under C:\Users\Kerrys

If you run the clone command under C:\development\projects\test you get the files there.

In linux terminal:

-first command: cd development/projects/test
-second command: git clone --branch 7.x-1.x https://git.drupal.org/sandbox/TestUser-1234567 test_project
cd test_project (from sandbox page > Version control)

I strongly disagree on @bojanz comment that code in sandboxes is only for people who already know git.
Git is a helper tool and it should be treated as one. Making it required like it is in drupal sandboxes only adds overhead on learning and possibly evicts some part of new people interested on learning drupal.

People who already know everything tend to start looking down on beginners. There's no one right way to learn and that should be kept in mind but unfortunately this is the way things go at the moment.

I started with a notepad text editor, ftp client and a free server space of my parents internet provider.
I'm glad I'm not a young dude trying to start learning website building in 2019.

amuhebwa’s picture

If you are a developer and you haven't learnt to use git, then it's high time you learnt. On Linux, it's very straight forward, and Windows created an app for that. to access the sandbox module, all you need is to clone it in a particular directory that you have created (git clone bla bla...) and then checking it out. Don't forget to create a branch on your local machine, in case you want to make changes to that project.
Ps: I hope the answer is not too late to be helpful