[Git] Git 文件归档, include submodule git archive命令,可以对任意提交对应的目录树建立归档。 $ git archive -o latest.zip HEAD 基于最新提交建立归档文件latest.zip $ git archive -o partial.tar HEAD src doc 只把目录src和doc建立到归档partial.tar中 $ git archive --format=zip tagName | zip > fo...
使用git archive将包括所有的repo历史,所以它可以很容易地被提取回它的原始形式。该命令还包括很多额外的选项,所以你可以准确地定制哪些文件包括在归档中,哪些不包括。 git archive --format=tar --output=./my-archive HEAD Git Submodules 使用git submodule将任何其他仓库拉入你的仓库 在git中,submodules让你把...
注意,这个命令只会将最新的代码文件下载到你的本地计算机,并不会下载整个git仓库的历史记录。 4.使用git submodule命令 如果你的项目中使用了git的子模块,你可以使用git submodule命令来下载项目的源码及其所有子模块的源码。在你的项目的根目录中使用以下命令: “` git submodule init git submodule update “` 这...
git archive –format zip –output “` 替换``为要导出的压缩文件的名称,``为目标分支的名称。这将导出目标分支的代码为一个zip文件,可以通过解压缩文件来查看和访问其中的代码。 5. 使用git submodule命令:如果目标分支是作为git子模块添加到仓库中的,可以使用git submodule命令来更新子模块的代码。运行以下命令来...
https://github.com/meitar/git-archive-all.sh Another bash script that can put submodules into separate archives. https://github.com/Kentzo/git-archive-all A Python stand-alone implementation that does not depend on git-archive and thus can write the whole archive in one go.About...
git submodule子模组管理 git tar-tree过时命令,请使用 git archive git var显示 Git 环境变量 git web–browse启动浏览器以查看目录或文件 git whatchanged显示提交历史及每次提交的改动 git-mergetool–lib包含于其他脚本中,提供合并/差异比较工具的选择和执行 ...
each sub-module usinggit rev-parse(callinggit rev-parse v2.1:path/to/submodulewill print the SHA1 for the commit that is checked out in submodule located atpath/to/submodulefor versionv2.1), and then just calls itself for each sub-module recursively, merging each archive into the main repo...
git-archive git-revert git-difftool git-bisect git-rm git-fsck git-branch git-shortlog git-get-tar-commit-id git-bundle git-show git-help git-checkout git-stash git-instaweb git-cherry-pick git-status git-merge-tree git-citool git-submodule git-rerere ...
git-submodule[1] Initialize, update or inspect submodules git-switch[1] Switch branches git-tag[1] Create, list, delete or verify a tag object signed with GPG git-worktree[1] Manage multiple working trees gitk[1] The Git repository browser scalar[1] A tool for managing ...
git-submodule.sh git-svn.perl git-web--browse.sh git-zlib.c git-zlib.h git.c git.rc.in gpg-interface.c gpg-interface.h graph.c graph.h grep.c grep.h hash-lookup.c hash-lookup.h hash.c hash.h hashmap.c hashmap.h help.c help.h hex-ll.c he...