Shell script to delete all git tags older that two weeks

This project was successfully completed by kaloyan13 for $34 AUD in a day.

Get free quotes for a project like this
Employer working
Completed by:
Skills Required
Project Budget
$30 - $250 AUD
Completed In
1 day
Total Bids
Project Description

I need a script that will delete all git tags older than two weeks.

The tags all follow the same format 2014-02-22_06-14-57_30


YYYY - 4 digit year
MM - 2 digit month
DD - 2 digit day
HH - 2 digit 24 hour time
mm - 2 digit minutes
SS - 2 digit seconds
B# - CI build number which can be ignored

I want the script to take a target repository as a parameter
[url removed, login to view] {taget-git-repo}

The script must clone the target repo
identify all tags that match the pattern described above
for all tags older than 2 weeks delete the tag and push to the remote repo

This script will run with the ssh configuration setup for the target repo so the script can assume ssh will just work.

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online