On 12 ноя, 17:09, apm <korja...@gmail.com> wrote: > > The simple answer: you can't really modify origin/master locally. > > Jeffrey To further augment what Jeffrey said -- if you don't want the wrongly committed changes to get lost, then, while on that detached HEAD, do git tag mywork to tag the commit at that detached HEAD, then go back to your real tree, say, by git checkout master and see what changes your tree misses compared to that wrongly started line of development: git log ..mywork Now you have a list of commits which you want to appear in your working branch. To do this, just do git merge mywork followed by git tag -d mywork (to get rid of now useless tag).
-- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-us...@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=.