Git List Tags From A Certain Period
I know I can list all tags and their creator dates this way:
git tag -l --format='%(refname) %(creatordate)' --sort=creatordate
But what if I am only interested in tags created in the year 2008? Or maybe tags created from 2. 3. 2015 to 6. 8. 2016? Is there a way to do this using git only? Or do I have to parse the output?
git for-each-ref refs/tags/. For example list tags with their creation date in short simple greppable format and filter:
git for-each-ref refs/tags/ --format='%(refname) %(creatordate:short)' | grep 2008-
If you need better filtering than simple
grep print dates in more fine-grained parseable format and parse the output with your own script:
git for-each-ref refs/tags/ --format='%(refname) %(creatordate:iso-strict)'
For the list of possible date formats see
git rev-list --date=<format>.
- → "Box: laravel/homestead-7" producing "sh.exe":box:: command not found"
- → Retrieve user's image selection from website
- → Getting error when using default task in gulp, shows the following error in Gitbash : Task requires a name that is string
- → Homestead Installaton
- → bash: homestead: command not found
- → Troubles with Artisan Tinker encoding
- → How can I access declared variable in bash when executing Laravel Envoy task?
- → coinex exchange API and use Curl /BASH to Place a market order crypto pair
- → Coiex API Curl Could not resolve host
- → How to GREP words, not lines, that contain specific characters, and print entire word
- → Cmd and Git bash have a different result when run a Python code
- → How can I convert ip ranges formatted in ip1-ip2 to cidr format?
- → Pushing to another user's remote repository without the use of pull requests