This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Personal branches and restrictions with GIT repository
- From: Matthew Fortune <Matthew dot Fortune at imgtec dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>, gdb <gdb at sourceware dot org>
- Date: Thu, 28 May 2015 10:11:01 +0000
- Subject: RE: Personal branches and restrictions with GIT repository
- Authentication-results: sourceware.org; auth=none
- References: <5566E465 dot 3080909 at redhat dot com>
> git checkout master; git pull; git checkout users/pmuldoon/c++compile;
> git merge master; git push
>
> This just makes my branch = Master + my changes. It does not, of course,
> affect Master in any way.
If the long term aim is to submit the code to master you may find it
easier to rebase and force push to your personal branch. I'm assuming
force push to a personal branch is allowed.
This keeps all your commits at the top too. This method works well until
you have multiple contributors but with some practice it is possible to
work as a group with rebase+force push.
Matthew