Basically, what I did from this point was do a "git log -g", which allowed me to look through all of refs, whether they had associated branches or not. Next, I merged these back in one by one by their sha hashes using "git cherry-pick
Anyways, if I lose my changes like that again, my workflow will be something like this:
git log -g
git checkout -b new_branch_to_apply_cherry-pick_to
git cherry-pick(until done, merging/committing stuff as necessary)
git push wherever
git checkout master
git pull wherever
git branch -D new_branch_to_apply_cherry-pick_to (after making damn sure things are in order)
No comments:
Post a Comment