Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am soneyworld on github.
  • I am soney (https://keybase.io/soney) on keybase.
  • I have a public key whose fingerprint is 3A24 5708 F952 1B13 FE9F 5BDB 9FB7 A203 FB1A 76BA

To claim this, I am signing this object:

@soneyworld
soneyworld / git-push-all-tags-of-branch.sh
Created June 17, 2014 13:12
Script to push all tags of a specified local branch to the specified remote
#!/bin/bash
ORIGIN=$1
BRANCH=$2
TAGS=$(git log --pretty='%H' $BRANCH | xargs -n1 git describe --tags --exact-match 2>/dev/null)
for t in $TAGS
do
git push $ORIGIN $t
done
%SCRIPT
var text = cursor.selectedText();
var array = text.split("\n");
array.sort();
text = "";
for (var line in array){
text += array[line];
if(line < array.length -1){
text+="\n";
}