Rapid-fire: Git commands pipelines depend on (tags, describe, diff, shallow fetch).
BeginnerProductionRapid-Fire Commands
Answer
git rev-parse --short=8 HEAD
git describe --tags --always --dirty
git diff --name-only origin/main...HEAD # changed files for path-based logic
git fetch --unshallow --tags # when full history is needed
git tag -a v1.7.0 -m "Release 1.7.0" && git push origin v1.7.0
git log --pretty=format:'%h %s' v1.6.0..v1.7.0
More on Rapid-Fire Commands
Rapid-fire: how do you trigger a GitHub Actions workflow from the CLI and watch it?BeginnerRapid-fire: how do you list and manage GitHub secrets and variables via CLI?BeginnerRapid-fire: how do you validate a GitHub Actions workflow locally?BeginnerRapid-fire: how do you validate a `.gitlab-ci.yml` and trigger a pipeline from the CLI?BeginnerRapid-fire: how do you trigger a Jenkins job remotely with parameters?IntermediateRapid-fire: how do you validate a Declarative Jenkinsfile from the command line?Intermediate