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 66
66
* [ Ignore one file on commit (e.g. Changelog).] ( https://github.com/git-tips/tips#ignore-one-file-on-commit-eg-changelog )
67
67
* [ Stash changes before rebasing] ( https://github.com/git-tips/tips#stash-changes-before-rebasing )
68
68
* [ 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 )
69
70
70
71
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
71
72
<!-- @doxie.inject end toc -->
@@ -467,5 +468,10 @@ __Alternatives:__
467
468
git pull origin pull/< id> /head:< branch-name>
468
469
```
469
470
471
+ ## Show the most recent tag on the current branch
472
+ ``` sh
473
+ git describe --tags --abbrev=0
474
+ ```
475
+
470
476
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
471
477
<!-- @doxie.inject end -->
Original file line number Diff line number Diff line change 264
264
"title" : " Fetch pull request by ID to a local branch" ,
265
265
"tip" : " git fetch origin pull/<id>/head:<branch-name>" ,
266
266
"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"
267
271
}
268
272
]
You can’t perform that action at this time.
0 commit comments