On Mon, Jan 05, 2015 at 04:35:38AM -0800, ST wrote: > Hello > This is my first time with GIT. I've been working on the master for some > days, but now have been asked to "move" my changes to a new remote branch > created by another developer. > > What are the steps to proceed for this, given am using Eclipse for PHP, and > knowing that the new branch does not have any of my changes made so far, > which are yet to be committed on the master as well?
Commit your changes in your repo (on whatever branch you see fit), then read up on how to use remotes, e.g. at <http://git-scm.com/book/en/v2/Git-Branching-Remote-Branches> and <http://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes>. Add, as a new remote, the repo containing the branch you have been asked to commit your work on. Then look at merging in git, e.g. <http://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging>. Check out the branch locally and merge in your changes. Then push. > Will my changes be lost in the process as well? No, the end result should be that your changes are more widely accessible :) /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus Any fool can write code that a computer can understand. Good programmers write code that humans can understand. -- Martin Fowler -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Description: PGP signature