Skip to content

Populating_repository_for_replication

Lars Vilhuber edited this page May 16, 2019 · 18 revisions

Clone and populate the repository

Note: the images below refer to a particular example. Your precise parameters will be different. For instance, fs379 will be replaced with your own netid or Bitbucket login.

Proceed as follows:

  • Click on the Clone button on the Bitbucket repository page, which will provide you with instructions:

  • Open a terminal at the repository location (varies by operating system)

  • In words:

  git clone
https://(netid)@bitbucket.org/aeaverification/aej-applied-10.1257-app.6.2.152.git
  • You will now have a directory called "aej-applied-...". You should "enter" it (e.g., cd aej-applied-...)

  • Download the template from this link, and unpack it into the newly created directory (only keep the files, do not keep the directory called "replication-template").

  • On Linux/Mac/Git bash:

  unzip -j *zip; rm *zip

⚠️ Delete any files from the template that you do not need

For instance, the template contains a template_config.R for articles that use R. If your article does not use R, delete it.

  • Add the relevant template files (and only those) to your repository:
  git add *; git add .gitignore

  • Make sure you are in the correct directory before issuing the git add command (you should be in the “aej-applied…” directory)

  • If you type git status, your directory should now look like this:

  • You should now commit this initial set of files:
  git commit -m "Importing the template"

🚨 EVERY COMMIT requires a COMMIT MESSAGE.

  wget "https://www.aeaweb.org/articles/attachments?retrieve=femSIQOVNV_qoIaa_KFuGWz1VIdU0xVS" -O "replication.zip"

  • Unzip it, maintaining the directory structure:
  unzip replication.zip
  • Delete the ZIP file:
  rm replication.zip
  • You should now add and commit all program files, but ignore the data files! For instance,
   git add *do
   git add *pdf
   git status
   git commit -m 'Initial commit of article replication materials'

▶️ You are now set up to start assessing and replicating this article!

Clone this wiki locally