<div class="gmail_quote">On Sun, Aug 22, 2010 at 3:15 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
So how do I modify my workflow. Here is what I did<br>
<br>
git checkout TestHarness<br>
edited a bunch of files<br>
compiled and tested my changes<br>
added and committed<br></blockquote><div><br></div><div>The following bits should change, (see <a href="http://www.vtk.org/Wiki/Git/Workflow/Stage">http://www.vtk.org/Wiki/Git/Workflow/Stage</a>)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
git checkout master<br>
git merge TestHarness<br>
git pull<br>
git push<br></blockquote><div><br></div><div>One time only,</div><div><br></div><div>git remote add git@vtk.org:stage/VTK.git</div><div><br></div><div>Then, you would do a (from your topic branch),</div><div><br></div><div>
git push stage HEAD</div><div>ssh <a href="mailto:git@vtk.org">git@vtk.org</a> stage VTK merge TestHarness</div><div><br></div><div>Where TestHarness is the name of your topic branch. You can also issue,</div><div><br></div>
<div>ssh <a href="mailto:git@vtk.org">git@vtk.org</a> stage VTK print</div><div><br></div><div>To see a list of staged topic that are not yet fully merged. This is part one of the move to the branchy workflow - actually allowing topic branches to be merged into master. Right now we are allowing both the CVS-like linear workflow (push straight to VTK), or branch (using the stage).</div>
<div><br></div><div>I hope that makes things clearer.</div><div><br></div><div>Thanks,</div><div><br></div><div>Marcus</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
<br>
On Sun, Aug 22, 2010 at 3:09 PM, Marcus D. Hanwell<br>
<<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>> wrote:<br>
> On Sun, Aug 22, 2010 at 3:05 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> I tried to push some changes to master. Here is what happened...<br>
>> [lorensen@localhost VTK]$ git push<br>
>> Counting objects: 32, done.<br>
>> Delta compression using up to 2 threads.<br>
>> Compressing objects: 100% (19/19), done.<br>
>> Writing objects: 100% (19/19), 2.10 KiB, done.<br>
>> Total 19 (delta 14), reused 0 (delta 0)<br>
>> ----------------------------------------------------------------------<br>
>> merge commit 06c3f787 not allowed<br>
>> ----------------------------------------------------------------------<br>
>> error: hook declined to update refs/heads/master<br>
>> To git@vtk.org:VTK.git<br>
>> ! [remote rejected] master -> master (hook declined)<br>
>> error: failed to push some refs to 'git@vtk.org:VTK.git'<br>
>><br>
> When pushing directly to VTK, no merge commits are allowed. You probably did<br>
> a git pull and created a merge with the remote master, you can tell by<br>
> issuing,<br>
> git log --graph --stat origin/master..<br>
> In all likelihood, you can fix it by simply issuing,<br>
> git pull --rebase origin/master<br>
> We do have a topic stage that allows merge commits. If you get stuck, you<br>
> can always push your topic and let me take a look at it for you.<br>
> Thanks,<br>
> Marcus<br>
</div></div></blockquote></div><br>