Last active
January 29, 2024 02:39
-
-
Save channainfo/bb0cb6bbee68dba1ef9710c1aeeaba1d to your computer and use it in GitHub Desktop.
Revisions
-
channainfo renamed this gist
Jan 29, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
channainfo revised this gist
Jan 29, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # git branch -r list all branch from the remote repo # pipe the output to grep only branches start with 'automatic_translations' # echo each branch_name stripping the prefix origin/ # git push origin :{each_branch_name} git branch -r | fgrep origin/automatic_translations | while read x; do echo "deleting ${x/origin\//}"; git push origin ":${x/origin\//}"; done -
channainfo created this gist
Jan 29, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ # git branch -r list all branch from the remote repo # pipe the output to grep only branches start with 'automatic_translations' # echo the branch rename by removing the origin/ # git push origin :{each_branch_name} git branch -r | fgrep origin/automatic_translations | while read x; do echo "deleting ${x/origin\//}"; git push origin ":${x/origin\//}"; done