Hey all, i have a (hopefully) quick and easy git question that i would like help on.
Let's give a simple timeline of events.
Yesterday i did a standard pull, and got my local 'develop' branch in line with 'remotes/origin/develop'. I then proceeded to make about 10 commits from that point on. None of these commits have been pushed to the remote.
I would like to take all 10 of those commits and move them over to a different branch (which we'll call 'temp work' for the time being), such that locally 'develop' now points back to where i started from, and 'temp work' points to the last of the 10 commits i made.
i.e. i want to be in the same state i would have been had i branched from develop before starting the work, and then made those 10 changes in the new branch.
I want to do this so i cna push the changes to hte server (paranoia in case my computer dies) without affecting the server's 'develop' branch itself.
Thanks!
Let's give a simple timeline of events.
Yesterday i did a standard pull, and got my local 'develop' branch in line with 'remotes/origin/develop'. I then proceeded to make about 10 commits from that point on. None of these commits have been pushed to the remote.
I would like to take all 10 of those commits and move them over to a different branch (which we'll call 'temp work' for the time being), such that locally 'develop' now points back to where i started from, and 'temp work' points to the last of the 10 commits i made.
i.e. i want to be in the same state i would have been had i branched from develop before starting the work, and then made those 10 changes in the new branch.
I want to do this so i cna push the changes to hte server (paranoia in case my computer dies) without affecting the server's 'develop' branch itself.
Thanks!