On Apr 5, 3:42 pm, Johannes Müller <dersinndesleb...@gmx.net> wrote: > I modified my master branch without committing the changes. Now I want > these changes in a new branch "mod" on the remote site and my working > copy without changing anything else. The master branch on the remote end > (github) should stay untouched, since the changes are not stable. How > can I push my changes to a new (still not existing) branch?
# On your working copy git checkout -mb mod git config branch.mod.remote origin git config branch.mod.merge refs/heads/mod git commit -am "Changes for branch mod" git push origin mod HTH -- Jeenu -- 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-users@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=en.