Skip to content

Instantly share code, notes, and snippets.

View phts's full-sized avatar
:octocat:
👾⛱🥁🏡🎧👓🌤🚼🛸🚗🕹🚂🌇🇵🇱🚭🇳🇱🇧🇾🔭🛠🖥🎹♠🥌

Phil Tsaryk phts

:octocat:
👾⛱🥁🏡🎧👓🌤🚼🛸🚗🕹🚂🌇🇵🇱🚭🇳🇱🇧🇾🔭🛠🖥🎹♠🥌
View GitHub Profile
@rlivsey
rlivsey / git-prune-tags.rb
Created March 26, 2010 15:47
Script to prune any tags which exist locally but not on the remote
#!/usr/bin/env ruby
require 'readline'
def prompt(prompt="> ")
input = nil
prompt += " " unless prompt =~ /\s$/
loop do
input = Readline.readline(prompt)
break if input.length > 0
end