亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
Guides gitattributes giteveryday gitglossary gitignore gitmodules gitrevisions gittutorial gitworkflows Administration git archive git bundle git clean git filter-branch git fsck git gc git instaweb git reflog Basic Snapshotting git add git commit git diff git mv git reset git rm git status Branching and Merging git branch git checkout git log git merge git mergetool git stash git tag Debugging git bisect git blame git grep Email git am git format-patch git request-pull git send-email External Systems git fast-import git svn Getting and Creating Projects git clone git init Git git annotate git archimport git bisect-lk2009 git check-attr git check-mailmap git check-ref-format git checkout-index git cherry git citool git column git credential git credential-cache git credential-store git cvsexportcommit git cvsimport git cvsserver git diff-files git diff-tree git difftool git fast-export git fetch-pack git fmt-merge-msg git get-tar-commit-id git gui git http-backend git http-fetch git http-push git imap-send git index-pack git interpret-trailers git ls-remote git ls-tree git mailinfo git mailsplit git merge-file git merge-index git merge-one-file git merge-tree git mktag git mktree git name-rev git notes git p4 git pack-objects git pack-redundant git pack-refs git parse-remote git patch-id git prune git prune-packed git quiltimport git receive-pack git remote-ext git remote-fd git remote-testgit git repack git replace git rerere git send-pack git sh-i18n git sh-setup git shell git show-branch git show-index git stripspace git unpack-file git unpack-objects git upload-archive git upload-pack git var git verify-commit git verify-tag git whatchanged git worktree Inspection and Comparison git describe git shortlog git show Miscellaneous api credentials api index gitcli gitcore tutorial gitcredentials gitcvs migration gitdiffcore githooks gitk gitnamespaces gitremote helpers gitrepository layout gitsubmodules gittutorial 2 gitweb gitweb.conf pack format User Manual Patching git apply git cherry-pick git rebase git revert Plumbing Commands git cat-file git check-ignore git commit-tree git count-objects git diff-index git for-each-ref git hash-object git ls-files git merge-base git read-tree git rev-list git rev-parse git show-ref git symbolic-ref git update-index git update-ref git verify-pack git write-tree Server Admin git daemon git update-server-info Setup and Config git git config git help Sharing and Updating Projects git fetch git pull git push git remote git submodule
characters

名稱

git-name-rev  - 查找給定轉(zhuǎn)速的符號(hào)名稱

概要

git name-rev [--tags] [--refs=<pattern>]               ( --all | --stdin | <commit-ish>… )

描述

查找適用于人類消化的符號(hào)名稱,以可解析的任何格式給出修訂git rev-parse。

選項(xiàng)

--tags

不要使用分支名稱,而只使用標(biāo)簽來命名提交

--refs=<pattern>

只能使用名稱與給定 shell 模式匹配的引用。該模式可以是分支名稱,標(biāo)簽名稱或完全限定參考名稱之一。如果給定多次,請(qǐng)使用名稱與任何給定 shell 模式匹配的 ref。使用--no-refs明確給出任何以前的參考模式。

--exclude=<pattern>

不要使用任何名字與給定 shell 模式匹配的 ref。該模式可以是分支名稱,標(biāo)簽名稱或完全限定參考名稱之一。如果給定多次,當(dāng)匹配任何給定模式時(shí), ref 將被排除。當(dāng)和--refs 一起使用時(shí),只有在匹配至少一個(gè)--refs 模式并且不匹配任何--exclude 模式時(shí),ref 才會(huì)用作匹配。使用--no-exclude明確排除模式的列表。

--all

列出所有提交可達(dá)的所有提交

--stdin

通過用“$ hex($ rev_name)”替換所有40個(gè)字符的 SHA-1格式(例如$ hex)來轉(zhuǎn)換 stdin。與--name-only 一起使用時(shí),替換為“$ rev_name”,完全省略$ hex。旨在供劇本使用。

--name-only

而不是打印 SHA-1和名稱,只打印名稱。如果使用--tags 給定,“tags /”的常用標(biāo)記前綴也將從名稱中省略,從而使輸出git-describe更加緊密。

--no-undefined

如果參考值未定義,則代碼為錯(cuò)誤代碼!= 0,而不是打印undefined。

--always

顯示唯一縮寫的提交對(duì)象作為后備。

示例

給定一個(gè)提交,找出它相對(duì)于本地裁判的位置。說有人寫了你關(guān)于那個(gè)奇妙的提交 33db5f4d9027a10e477ccf054b2c1ab94f74c85a。當(dāng)然,你看看提交,但只是告訴你發(fā)生了什么,但不是上下文。

輸入git name-rev

% git name-rev 33db5f4d9027a10e477ccf054b2c1ab94f74c85a
33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99~940

現(xiàn)在你明智了,因?yàn)槟阒浪?v0.99之前發(fā)生了940次修訂。

你可以做的另一件好事是:

% git log | git name-rev --stdin
Previous article: Next article: