Skip to content

Instantly share code, notes, and snippets.

@nikicat
Created January 28, 2013 00:54
Show Gist options
  • Save nikicat/4651824 to your computer and use it in GitHub Desktop.
Save nikicat/4651824 to your computer and use it in GitHub Desktop.
Create git tag from debian/changelog
#!/bin/bash
# You could optionally swap this lines
git checkout `git log -1 --skip 1 debian/changelog | head -1 | sed 's/.* //'`
git tag `head -1 debian/changelog | sed 's/^.* (\(.*\)) .*$/v\1/'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment