An important correction to the script...
On Mon, Jan 26, 2009 at 9:15 PM, Sitaram Chamarty <[email protected]> wrote:
> But the following should work (sort of tested)
I realised that not only do we not need a new branch, it actually
caused an error which I didn't notice.
Please do not use the previous one; use this instead; there's no
messing with branches in this one, and I have actually tested (albeit
on a dummy repo). I intend to actually use this now -- thanks for
pushing to me look into this!
# better way to stash
git commit -m wip-index-state
git add -A && git commit -m wip-worktree-state
# save all your local modifications that are NOT also in some
# remote branch
git bundle create /tmp/sos.bdl --all --not --remotes
# copy that file wherever you want, however you want...
rsync /tmp/sos.bdl bkphost: # or scp, or whatever
# unstash
git reset --mixed HEAD^
git reset --soft HEAD^
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GitHub" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/github?hl=en
-~----------~----~----~----~------~----~------~--~---