Skip to content

Instantly share code, notes, and snippets.

@alexbartsch
Created December 7, 2016 15:36
Show Gist options
  • Save alexbartsch/5c7869a319a463e651306880a901cb18 to your computer and use it in GitHub Desktop.
Save alexbartsch/5c7869a319a463e651306880a901cb18 to your computer and use it in GitHub Desktop.
Script for archiving git branch.
#!/bin/bash
git branch merged/$1 origin/$1
git push origin merged/$1
git push origin :$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment