FG

Git Syntax: How to archive a repository?

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

Problem

So I have a git repository on my local computer that I want to archive (zip is fine) and upload to my server. Once the file has been uploaded to the server, I will extract the archive. I don't need any of the git information, so I think I need to use but I'm not exactly sure how to use it...and the…

Error Output

cd projectname
git archive master

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Git Syntax: How to archive a repository?

Low Risk

Any one of the following will work: To add a subdirectory inside the archive, See the git-archive manual page for reference.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment