Version Control for Surgical Data Science: A Primer on Git and GitHub.
Andrew C Kuo, Marissa C Kuo, Paul C Kuo
School of Medicine, Duke University, Durham, NC, USA. · Department of Surgery, Vanderbilt University Medical Center, Nashville, TN, USA.
Key points
From the paper's conclusion- This allows surgical researchers to adopt version control practices that protect their work, support reproducibility, and meet emerging standards for transparent computational research.
Abstract
Surgical research increasingly relies on computational analysis of large clinical datasets, and major journals now request code availability statements for publication. Yet most surgical trainees and faculty receive no formal training in software version control, despite its central role in reproducible research. This article provides a practical introduction to Git, a widely used version control system in academic and industrial software development, and GitHub, a leading hosting platform. The presentation implements workflows specific to surgical research, including retrospective registry analysis, multi-institutional collaboration, and reviewer reproducibility requests. Core concepts covered include the four mental models that are the basis for Git usage (repository, commit, branch, and remote), the daily edit-stage-commit cycle that is the dominant workflow, and the use of branches and pull requests for collaboration. Attention is given to clinical data security: identifiable patient data must never enter a version-controlled repository, and the article details the use of a.gitignore file to prevent inadvertent commits. The article also illustrates the installation of community-developed tools through a worked example involving Stash, an open-source persistent memory layer for artificial intelligence (AI) research assistants. Three recovery scenarios are demonstrated: restoring deleted code, reproducing the exact state of a manuscript at submission, and resolving merge conflicts. This allows surgical researchers to adopt version control practices that protect their work, support reproducibility, and meet emerging standards for transparent computational research.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Artificial Intelligence Across the Surgical Research Workflow: A Stage-Specific Framework for Benefits, Failure Modes, and Oversight.The American surgeon · 2026
- Research Code Sharing in Support of Gold Standard ScienceJournal of Diabetes Science and Technology · 2026
- AI-assisted scoping review of code sharing in clinical prediction model research.Nature medicine · 2026
- ClinAgent: AI-assisted methodology for clinical trial data processing and statistical programming.Biology methods & protocols · 2026
- A Locally Executed Agentic Artificial Intelligence Framework for Deduplication, Screening, and Structured Data Extraction in Spine Surgery Systematic Reviews: A PRISMA-Transparent Reporting of Artificial Intelligence in Comprehensive Evidence Synthesis-Compliant Evaluation.JB & JS open access · 2026
- Partnering With Generative Artificial Intelligence for Quantitative Data Analysis in Nursing Research: A Practical Workflow for Ethical Collaboration.Biological research for nursing · 2026