New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

checkout-next-tag

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checkout-next-tag

`checkout-next-tag` is a tiny Node command to checkout the next sequential git tag for a given git repository. This is useful to step through a repository's development over time.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

checkout-next-tag

checkout-next-tag is a tiny Node command to checkout the next sequential git tag for a given git repository. This is useful to step through a repository's development over time.

The motivation for this command is to provide a cross-platform, no install way of doing this cleanly.

Usage

In a git repository, run:

npx checkout-next-tag

Alternatives

This could be done without Node with a bash command:

checkout_next_tag() {
  local current_tag=$(git describe --tags)
  local next_tag=$(git tag -l | sed -n "/$current_tag/{n;p;q;}")
  git checkout "$next_tag"
}

FAQs

Package last updated on 13 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc