Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the git(1) equivalent of "cvs export"?

Tags:

git

What is the git(1)-based equivalent of the "cvs export" command, which checks-out a snapshot of the repository without needing or creating any administrative files (imagine that this is the first step executed by an independent continuous-integration server). Does the git(1) equivalent use the git archive command?

like image 205
Steve Emmerson Avatar asked Feb 16 '11 17:02

Steve Emmerson


People also ask

What is a CVS export?

Most often understood as an acronym for “comma-separated values” (though sometimes called “character-separated values” because the separator character does not have to be a comma), CSV is a file format that stores tabular data in plain-text form.

How to export tag git?

To do so, right-click the branch in the sidebar and choose Export Files from <tag>… from the contextual menu.

What does git archive do?

Git archive is a helpful utility for creating distributable packages of git repositories. Git archive can target specific refs of a repository and only package the contents of that ref. Git archive has several output formats that can utilize added compression.

Does git archive preserve history?

Use Git Archive for Files The available list of formats can be retrieved with the git archive --list command. But the Git archive command includes only the files, not the history of those files. You can also use git archive branch to see the history of your branch/tree.


1 Answers

Yes, git-archive is what you want.

like image 112
mipadi Avatar answered Oct 04 '22 04:10

mipadi