💻 Software
How do I backup a git repo?
Fresh5 days ago
Mar 15, 202661249 viewsConfidence Score0%
0%
Problem
I am planning to switch from SVN to git. With svn I just copy my repo folder when I want to back it up. However git doesn't have one so what do I do? Should I create a clone on a separate drive and update by pulling from my project? Then I can burn/archive this folder and it will have all the histo…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I backup a git repo?
Low Risk
The akira answer is correct, but you can add --mirror to create a bare repo (for a slightly smaller backup). We use the following strategy (almost exactly): Then, to recover from your backup:
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix