Questions tagged [git-archive]

For questions about git-archive, a Git sub-command used to create an archive from part of a Git repository. For example, it can create a tarball of the contents of a particular commit.

git archive is a sub-command used to create an archive, in various formats, from part of a Git repository. For example, it can create a tarball of the contents of a particular commit.

For usage information, see the git archive man page.

52 questions
0
votes
1 answer

Git checkout into a work directory with symbolic links

In this case the repository does not have symbolic links, but the working directory I am checking out into does. Why? I have an existing repository for a website. To simplify matters, let's say the directory structure for this is: bin www But…
Booboo
  • 38,656
  • 3
  • 37
  • 60
0
votes
2 answers

Git archive without first/initial commit

How to make tar archive from git repository since selected commit? This question is similar to Git archive all changes except first commit but I need .tar archive as a result not git patch file. Explanation: I make "modules" for a strange PHP CMS…
jmarceli
  • 19,102
  • 6
  • 69
  • 67
0
votes
1 answer

pyinstaller replace strings like git archive

with git archive command, I can insert text in the source, example: if the code have the string # $Format:%cd$ the string is replaced by the commit date. with pyinstaller and spec file, I can make come similar ? (update strings in building…
JuanPablo
  • 23,792
  • 39
  • 118
  • 164
0
votes
2 answers

git-archive show same commit date in files with different commit date

In git, I have two files with different commit date. But, when I make git-archive, I get the same commit date, why ? [[ -e git_test ]] && rm -rf git_test mkdir git_test cd git_test git init # make file01 echo 'f01 $Format:%cd$' > file01.txt echo…
JuanPablo
  • 23,792
  • 39
  • 118
  • 164
0
votes
1 answer

git export plus non-commited files

I want to copy a folder in a git repository to make a new repository (If you need to know why, I created a rails project one folder below git root, and Heroku really dislikes this). I did a git-archive step as suggested on this question. However…
lurscher
  • 25,930
  • 29
  • 122
  • 185
0
votes
1 answer

Git Archive ZIP Specified Files/Folders

I am trying to use git archive to archive only the files I specify and I am getting fatal: Not a valid object name error. Could someone provide an example? My current code: git archive -o ./archive/archive.zip ./folder1 ./folder2 The result should…
AlexIIP
  • 2,461
  • 5
  • 29
  • 44
0
votes
4 answers

Restoring a Git archive

I've followed the guides and managed to create a zip archive of my git repository, by doing this: git archive HEAD --format=zip > c:\myarchive.zip The reason I want to do this is that I'm done with the project, so I'm going to delete the VM I've…
CodeThug
  • 3,054
  • 1
  • 21
  • 17
1 2 3
4