git archive --format=tar --output=./my-archive HEAD Git Submodules 使用git submodule将任何其他仓库拉入你的仓库 在git中,submodules让你把一个版本库装入另一个版本库,通常用于核心依赖关系或把组件分割成独立的版本库。更多信息,请看这个帖子。 运行下面的命令将把一个模块拉到指定的位置,同时创建一个.gi...
Show only the name(s) and status of each changed file. See the description of the--diff-filteroption on what the status letters mean. Just like--name-onlythe file names are often encoded in UTF-8. --submodule[=<format>] Specify how differences in submodules are shown. When specifying-...
例如:“--notes = foo”将只显示“refs / notes / foo”中的注释; “--notes = foo --notes”将显示来自“refs / notes / foo”和默认注释 ref(s)的两个注释。 --no-notes 不要显示注释。这会取消上述--notes选项,方法是重置从中显示注释的注释列表。选项按照命令行给出的顺序进行解析,因此,例如“--...
If you set the configuration setting status.submodulesummary, Git will also show you a short summary of changes to your submodules: $ git config status.submodulesummary 1 $ git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "...
https://github.com/gafish/gafish.github.com.git备用。 再回到命令行工具,一切就绪,接下来进入本文的重点。 常用操作 所谓实用主义,就是掌握了以下知识就可以玩转Git,轻松应对90%以上的需求。以下是实用主义型的Git命令列表,先大致看一下 git clone
git show HEAD~3 git show -s --pretty=raw 2be7fcb476 git stash # 暂存当前修改,将所有至为HEAD状态 git stash list # 查看所有暂存 git stash show -p stash@{0} # 参考第一次暂存 git stash apply stash@{0} # 应用第一次暂存 git grep "delete from" # 文件中搜索文本“delete from” ...
# git-submodule.sh: add, init, update or list git submodules # # Copyright (c) 2007 Lars Hjemli dashless=$(basename "$0" | sed -e 's/-/ /') USAGE="[--quiet] add [-b <branch>] [-f|--force] [--name <name>] [--reference <repository>] [--] <repository> [<path>...
git showgit show <commitId>git show <branchName> shortlog 用于汇总 git 日志输出。非常人性化的一个命令。// 按照用户列出其 commit 的次数以及每次 commit 的注释git shortlog// 按照 commit 数量从多到少的顺序列出本仓库的贡献者并省略注释git shortlog -sn diff 用来比较文件之间的不同。具体用法可参考...
git ${wt_prefix:+-C "$wt_prefix"} submodule--helper set-url ${quiet:+--quiet} -- "$@" } # # Show commit summary for submodules in index or working tree # # If '--cached' is given, show summary between index and given commit, # or between working tree and given co...
submodules. --remote This option is only valid for the update command. Instead of using the superproject’s recorded SHA-1 to update the submodule, use the status of the submodule’s remote-tracking branch. The remote used is branch’s remote (branch.<name>.remote), defaulting to origin....