Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

tag stale git branches to remove them but be able to restore them if necessary

git tag archive/<branchname> <branchname>
 git branch -D <branchname>
 git branch -d -r origin/<branchname>
 git push --tags
 git push origin :<branchname>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #tag #stale #git #branches #remove #restore
ADD COMMENT
Topic
Name
6+6 =