![]() The /path/to/checkout/ must be empty, Git will not delete any file, but will overwrite files with the same name without any warning Git -git-dir=/path/to/repo/.git -work-tree=/path/to/checkout/ checkout 2ef2e1f2de5f3d4f5e87df7d8 -f -q. When checking out paths from the index, do not fail upon unmergedĮntries instead, unmerged entries are ignored.Īdditionally you can get any Branch or Tag or from a specific Commit Revision like in SVN just adding the SHA1 (SHA1 in Git is the equivalent to the Revision Number in SVN) mkdir /path/to/checkout/ Git -git-dir=/path/to/repo/.git -work-tree=/path/to/checkout/ checkout -f -q gitattributes export-ignore then try git checkout mkdir /path/to/checkout/ ![]() The non- HEAD branches will be accessible under /branches/: svn ls Īll tags under /tags/ in the same fashion: svn ls ![]() The HEAD branch or master branch will be available using trunk: svn ls Although GitHub is svn compatible and they do have all git repos svn accessible so you could just use svn export like you normally would with a few adjustments to your GitHub url.įor example to export an entire repository, notice how trunk in the URL replaces master (or whatever the project's HEAD branch is set to): svn export Īnd you can export a single file or even a certain path or folder: svn export A special case answer if the repository is hosted on GitHub.Īs far as I know Github does not allow archive -remote.
0 Comments
Leave a Reply. |