Update 'git_tag' function

Credit to Mr. Jacob Swanner for the cleanup.