Is there a way to backup a branch in git and be able to "reimport" it?
git
Solution
Perhaps you could use git fast-export to save the branch to a file. Then if you need it later you can use `git fast-import` to get it back.
To accomplish saving the single branch `tmp` (that is, commits `f` and `g`), you could use the triple dot syntax, as follows:
git fast-export master...tmp
Problem
I have a branch I want to delete but possibly be able to restore it with full history -is there a way to do this ? So want this: ``` a - b - c - d - e master \ f - g tmp ``` to become: ``` a - b - c - d - e ``` and have `a - b - f - g` stored somehow that I can reapply it - is it possible ?