File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 6666* [ Ignore one file on commit (e.g. Changelog).] ( https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog )
6767* [ Stash changes before rebasing] ( https://github.com/git-tips/tips#stash-changes-before-rebasing )
6868* [ Fetch pull request by ID to a local branch] ( https://github.com/git-tips/tips#fetch-pull-request-by-id-to-a-local-branch )
69+ * [ Show the most recent tag on the current branch] ( https://github.com/git-tips/tips#show-the-most-recent-tag-on-the-current-branch )
6970
7071<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
7172<!-- @doxie.inject end toc -->
@@ -467,5 +468,10 @@ __Alternatives:__
467468git pull origin pull/< id> /head:< branch-name>
468469```
469470
471+ ## Show the most recent tag on the current branch
472+ ``` sh
473+ git describe --tags --abbrev=0
474+ ```
475+
470476<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
471477<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 264264 "title" : " Fetch pull request by ID to a local branch" ,
265265 "tip" : " git fetch origin pull/<id>/head:<branch-name>" ,
266266 "alternatives" : [" git pull origin pull/<id>/head:<branch-name>" ]
267+ },
268+ {
269+ "title" : " Show the most recent tag on the current branch" ,
270+ "tip" : " git describe --tags --abbrev=0"
267271 }
268272]
You can’t perform that action at this time.
0 commit comments