Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Can I retroactively create a tag that is based on a date?
  2. $ git tag -a v1.0 [-d 2012-01-01] -m 'the demo version from January 1, 2011'
  3.        
  4. - B - B - B - A - A - A - A
  5.                 /
  6.     B - B - A - A
  7.        
  8. git rev-list --before='2012-01-01' -n 1 <branch>
  9.        
  10. git log --format=%H --before='2011-01-01' -1 | xargs git tag v1.0