Due: Before next class
Prerequisite: Ballpark Paper Selection
This is your first contribution to an open-source repository.
Use Cursor as your advisor for Git commands. If you’re unsure about any step:
“I’m trying to [describe what you want to do]. What Git command should I use?”
For example:
Before starting, verify:
If you haven’t already forked ballpark:
https://github.com/YOUR-USERNAME/ballparkIn your terminal:
cd ~/GitHub/<your-username>/ballpark
# Check current remotes
git remote -v
# Add your fork as a remote named "myfork"
git remote add myfork https://github.com/YOUR-USERNAME/ballpark.git
# Verify
git remote -v
Expected: You see both origin (econ-ark/ballpark) and myfork (your fork)
# Make sure you're on master and up to date
git checkout master
git pull origin master
# Create a new branch for your changes
git checkout -b add-coauthor-YOURNAME
Replace YOURNAME with your actual name (no spaces, e.g., add-coauthor-smith).
cd ~/GitHub/<your-username>/ballpark
source .venv-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)/bin/activate
cursor .
models/We_Would_Like_In_Econ-ARK/[YourPaperFolder]/[notebook].ipynb
Find the cell that lists authors (usually near the top)
**Authors:** Original Author(s), Your Name (JHU)
Or if there’s a structured author list:
- Original Author (Original Institution)
- Your Name (Johns Hopkins University)
In Cursor’s terminal (or your regular terminal):
# Verify you're in ballpark and on your branch
pwd
git branch --show-current
# Stage your changes
git add models/We_Would_Like_In_Econ-ARK/[YourPaperFolder]/
# Commit
git commit -m "Add [Your Name] as coauthor to [Paper Name] ballpark"
Replace the bracketed items with your actual information.
git push myfork add-coauthor-YOURNAME
Before creating the PR, ask Cursor to check your work:
“I’m about to create a pull request. Can you review my staged changes and tell me if anything looks wrong?”
In Cursor, you can also run git diff --staged to see exactly what you’re about to commit.
Adding myself as a coauthor for the [Paper Name] ballpark entry.
This is part of coursework for Economics research methods.
Copy the URL of your pull request (e.g., https://github.com/econ-ark/ballpark/pull/42)
Bring this URL to class — you’ll need to share it.
Your PR is successful if:
“Permission denied” when pushing:
myfork, not origin“Branch already exists”:
git branch -D add-coauthor-YOURNAME
git checkout -b add-coauthor-YOURNAME
“Can’t find the notebook”:
ballpark root (not a subdirectory)“Merge conflicts”:
Your PR will be reviewed. Once approved and merged, you’ll officially be a contributor to the Econ-ARK ballpark repository!