git-for-each-ref - Output information on each ref SYNOPSIS git for-each-ref [--count=<count>] [--shell|--perl|--python|--tcl] [(--sort=<key>)…] [--format=<format>] [--include-root-refs] [ --stdin | <patter
git for-each-ref[--count=<count>] [--shell|--perl|--python|--tcl] [(--sort=<key>)…] [--format=<format>] [--include-root-refs] [ --stdin | <pattern>… ] [--points-at=] [--merged[=]] [--no-merged[=]] [--contains[=]] [--no-contains[=]] [--exclude=<...
代码语言:javascript 运行 AI代码解释 git for-each-ref --count=1 --sort='-*authordate' \ --format='%(*refname)|%(*authorname)|%(*authoremail)|%(*subject)|%(*authordate)' 'refs/tags' | \ while IFS='|' read refname authorname authoremail subject authordate do echo "Ref : $refna...
The git-for-each-ref(1) command doesn't provide a way to print root refs i.e pseudorefs and HEAD with the regular "refs/" prefixed refs. This commit adds a new option "--include-root-refs" to git-for-each-ref(1). When used this would also print pseudorefs and HEAD for the ...
git for-each-ref --format='%(refname)' refs/remotes | % { $_.Replace('refs/remotes/','') } | % { git branch "$_" "refs/remotes/$_"; git branch -r -d "$_"; } 备注 此命令可能需要几分钟到几个小时,具体取决于 SVN 存储库的大小。 完成后,你将拥有存储库的 Git 签出。
git for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)' 清除仓库中的文件 git filter-branch --force --index-filter'git rm --cached --ignore-unmatch *.class'--prune-empty --tag-name-filtercatHEAD -- --all ...
if [ "$filter_tag_name" ]; then git for-each-ref --format='%(objectname) %(objecttype) %(refname)' refs/tags | while read sha1 type ref; do ref="${ref#refs/tags/}" # XXX: Rewrite tagged trees as well?if [ "$type" != "commit" -a "$type" != "tag" ]; then ...
if [ "$filter_tag_name" ]; then git for-each-ref --format='%(objectname) %(objecttype) %(refname)' refs/tags | while read sha1 type ref; do ref="${ref#refs/tags/}" # XXX: Rewrite tagged trees as well?if [ "$type" != "commit" -a "$type" != "tag" ]; then ...
git for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'更新所有本地分支git branch \ --format "%(if)%(upstream:short)%(then)git push . %(upstream:short):%(refname:short)%(end)" | sh打造自己的git命令git config --global alias.st status git ...
* The code to handle the "--format" option in "for-each-ref" and friends made too many string comparisons on %(atom)s used in the format string, which has been corrected by converting them into enum when the format string is parsed. ...