git current tag
I think you want this: git symbolic-ref -q --short HEAD || git describe --tags --exact-match. That will output the value of HEAD, if it's not detached, ...,The command finds the most recent tag that is reachable from a commit. # If the tag ... git describe --abbrev=0 --tags # gets tag from current branch. git describe ... ,You could take a look at git describe , which does something close to what you're asking. ,The command finds the most recent tag that is reachable from a commit. .... i.e. the current head of my "parent" branch is based on v1.0.4, but since it has a few ... , For completion (thanks to Ciro Santili answer), git-tag has got the option --points-at that does exactly what Shawn is asking. git tag -l --points-at ..., This one doesn't get the latest tag in the current branch but for any branches. If you need to get tag matching pattern you can use --tags=<pattern> in rev-list . $(git describe --contains $(git rev-parse HEAD)) – Vaidas Zilionis Jan 4 '15 , Normally, Git's HEAD commit is a pointer to the branch that you currently have checked out. However, if you check out something other than a local branch (a tag or a remote branch, for example) you have a "detached head" -- you're not r,Like most VCSs, Git has the ability to tag specific points in a repository's history as being important. Typically, people use this functionality to mark release points ... ,你也可以用特定的字串規則去搜尋標籤。以Git本身的版本控制倉庫為例,其中包含超過240個標籤。當你只對1.4.2感興趣時,你可以執行以下指令: $ git tag -l 'v1.4.2.
相關軟體 GitHub Desktop 資訊 | |
---|---|
GitHub Desktop 是一個無縫的方式來貢獻於 GitHub 和 GitHub Enterprise 上的項目。 GitHub Desktop 允許開發人員同步分支,克隆存儲庫等等。拉請求,合併按鈕,叉隊列,問題,頁面,維基:所有令人敬畏的功能,使共享更容易。但是,這些東西只有在您將代碼推送到 GitHub.GitHub Desktop 之後才會很好。功能:啟動一個項目 您會在側邊欄中找... GitHub Desktop 軟體介紹
git current tag 相關參考資料
Get git current branchtag name - Stack Overflow
I think you want this: git symbolic-ref -q --short HEAD || git describe --tags --exact-match. That will output the value of HEAD, if it's not detached, ... https://stackoverflow.com Getting latest tag on git repository · GitHub
The command finds the most recent tag that is reachable from a commit. # If the tag ... git describe --abbrev=0 --tags # gets tag from current branch. git describe ... https://gist.github.com git checkout - How to get the latest tag name in current branch ...
You could take a look at git describe , which does something close to what you're asking. https://stackoverflow.com git-describe Documentation - Git
The command finds the most recent tag that is reachable from a commit. .... i.e. the current head of my "parent" branch is based on v1.0.4, but since it has a few ... https://git-scm.com How to get tags on current commit - Stack Overflow
For completion (thanks to Ciro Santili answer), git-tag has got the option --points-at that does exactly what Shawn is asking. git tag -l --points-at ... https://stackoverflow.com How to get the latest tag name in current branch in Git? - Stack ...
This one doesn't get the latest tag in the current branch but for any branches. If you need to get tag matching pattern you can use --tags=<pattern> in rev-list . $(git describe --contains ... https://stackoverflow.com Show which git tag you are on? - Stack Overflow
Normally, Git's HEAD commit is a pointer to the branch that you currently have checked out. However, if you check out something other than a local branch (a tag or a remote branch, for example) y... https://stackoverflow.com Tagging - Git
Like most VCSs, Git has the ability to tag specific points in a repository's history as being important. Typically, people use this functionality to mark release points ... https://git-scm.com 標籤 - Git
你也可以用特定的字串規則去搜尋標籤。以Git本身的版本控制倉庫為例,其中包含超過240個標籤。當你只對1.4.2感興趣時,你可以執行以下指令: $ git tag -l 'v1.4.2. https://git-scm.com |