-
Notifications
You must be signed in to change notification settings - Fork 2
Populating_repository_for_replication
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
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.
- Now download the code and data archive, e.g., https://www.aeaweb.org/articles/attachments?retrieve=femSIQOVNV_qoIaa_KFuGWz1VIdU0xVS (from https://doi.org/10.1257/mac.20150153) .
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'
-
Training
-
Tips for authors
-
Tips for replicators
-
Questionnaires
-
Definitions
-
Generic workflow
-
Post-publication replications
-
Technical issues
-
Appendix