FG

Add a parent directory to a git repositoy

Fresh3 days ago
Mar 15, 20266879 views
Confidence Score0%
0%

Problem

I have created a git repository for the C implementation of a program. I am about to add a Matlab implementation and I would like to have a single repository with two subdirectories: one for the C and one for matlab. Of course, I would like to keep the full history too! What should I do?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Add a parent directory to a git repositoy

Low Risk

Do it in separate steps: Create two new folders: C and Matlab. Move existing files from the current location into the C folder. Start adding new files in the Matlab folder.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment