Sorry if confused... because I am *really* confused too with git.<div><br></div><div>Anyway, I started anew again and it seems to be working now.</div><div><br></div><div>So I clone gmx:</div><div><br></div><div>git clone git://<a href="http://git.gromacs.org/gromacs.git">git.gromacs.org/gromacs.git</a></div>

<div>cd gromacs</div><div>git branch</div><div>* master</div><div><div>git pull</div><div>Already up-to-date.</div><div># now I want to move to &#39;release-4-5-patch&#39; branch</div><div><div>git checkout -t origin/release-4-5-patches </div>

<div>Branch release-4-5-patches set up to track remote branch release-4-5-patches from origin.</div><div>Switched to a new branch &#39;release-4-5-patches&#39;</div></div><div><div>git branch </div><div>  master</div><div>

* release-4-5-patches</div></div><div><div>git pull </div><div>Already up-to-date.</div></div><div># now I want to go back to master</div><div><div>git checkout -t origin/master             </div><div>fatal: git checkout: branch master already exists</div>

</div><div><div>git branch                   </div><div>  master</div><div>* release-4-5-patches</div></div><div># didn&#39;t change, let&#39;s try another command (and here starts my &#39;guessing&#39; experiment)</div>
<div>
<div>git checkout master</div><div>Switched to branch &#39;master&#39;</div></div><div># nice it works!</div><div><br></div><div>Thanks,</div><div><br></div><div>Alan</div><div><br></div><div class="gmail_quote">On 24 August 2010 14:14, Roland Schulz <span dir="ltr">&lt;<a href="mailto:roland@utk.edu">roland@utk.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Tue, Aug 24, 2010 at 9:01 AM, Alan <span dir="ltr">&lt;<a href="mailto:alanwilter@gmail.com" target="_blank">alanwilter@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Ok, doing:<div><br></div><div>git reset origin/release-4-5-patches</div><div>git checkout origin/release-4-5-patches</div></blockquote></div><div>I&#39;m confused what you are trying to do. But you are not supposed to checkout a remote branch. </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"><div><div>git pull</div><div>Already up-to-date.</div></div><div><br></div><div>restored the sanity of system.</div>

<div>

<div></div><div>

<div><br><div class="gmail_quote">On 24 August 2010 13:52, Alan <span dir="ltr">&lt;<a href="mailto:alanwilter@gmail.com" target="_blank">alanwilter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





Thanks Carsten, but now nothing is not working, not even what was doing so:<div><br></div><div><div>git reset --hard</div><div><div>HEAD is now at 5e3473a Merge branch &#39;release-4-5-patches&#39;</div></div>
<div>
amadeus[2216]:~/workspace/gromacs% git checkout release-4-5-patches </div>
<div>Already on &#39;release-4-5-patches&#39;</div><div>Your branch and &#39;origin/release-4-5-patches&#39; have diverged,</div><div>and have 37 and 31 different commit(s) each, respectively.</div><div>amadeus[2217]:~/workspace/gromacs% git pull</div>






<div>Auto-merging include/physics.h</div><div>Auto-merging include/resall.h</div><div>CONFLICT (content): Merge conflict in include/resall.h</div><div>Auto-merging include/string2.h</div><div>CONFLICT (content): Merge conflict in include/string2.h</div>






<div>Auto-merging include/vec.h</div><div>CONFLICT (content): Merge conflict in include/vec.h</div><div>Auto-merging src/gmxlib/string2.c</div><div>Auto-merging src/kernel/gen_vsite.c</div><div>Auto-merging src/kernel/pdb2gmx.c</div>






<div>Auto-merging src/kernel/pdb2top.c</div><div>CONFLICT (content): Merge conflict in src/kernel/pdb2top.c</div><div>Auto-merging src/kernel/resall.c</div><div>Auto-merging src/kernel/ter_db.c</div><div>Auto-merging src/tools/gmx_membed.c</div>






<div>Automatic merge failed; fix conflicts and then commit the result.</div><div>amadeus[2218]:~/workspace/gromacs% </div></div><div><br></div><div><br><br><div class="gmail_quote"><div><div></div><div>On 24 August 2010 12:10, Carsten Kutzner <span dir="ltr">&lt;<a href="mailto:ckutzne@gwdg.de" target="_blank">ckutzne@gwdg.de</a>&gt;</span> wrote:<br>






</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><div style="word-wrap:break-word"><div><div><div>On Aug 24, 2010, at 12:57 PM, Alan wrote:</div>





<br><blockquote type="cite">
Hi there,<div><br></div><div>I want to change from release-4-5-patches to master</div><div><br></div><div>I am trying:</div><div><br></div><div>git reset master</div><div>git checkout master</div><div><br></div><div><div>






git pull</div>

<div>error: Your local changes to &#39;include/resall.h&#39; would be overwritten by merge.  Aborting.</div><div>Please, commit your changes or stash them before you can merge.</div></div><div><br></div><div>git stash</div>








<div><div>Saved working directory and index state WIP on master: 5e3473a Merge branch &#39;release-4-5-patches&#39;</div><div>HEAD is now at 5e3473a Merge branch &#39;release-4-5-patches&#39;</div></div><div><br></div><div>








But I don&#39;t want branch &#39;release-4-5-patches&#39;!</div><div><br></div><div>Indeed, I am finding git very annoying to use.</div><div><br></div><div>All I wanted in svn lingo is to change to a branch and if there&#39;s conflict, ignore all changes in my side and revert any modification to what&#39;s in the repository.</div>






</blockquote></div>git reset --hard </div><div>will remove all your modifications to that branch that are not checked in yet. You might</div><div>want to save include/resall.h elsewhere if you still need your modifications.</div>






<div><br></div><div>Then </div><div>git checkout master</div><div><br></div><div>will check out the master branch. You might need to &quot;git pull&quot; after you checked</div><div>out the master so that you are up-to-date with the gromacs repository.</div>






<div><br></div><div>Carsten</div><div><br><blockquote type="cite"><div>

<div><br></div><div>Is it possible with git?</div><div><br></div><div>Thanks,</div><div><br></div><div>Alan</div><div><br></div><div><br>-- <br>Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>Department of Biochemistry, University of Cambridge. <br>








80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>&gt;&gt;<a href="http://www.bio.cam.ac.uk/~awd28" target="_blank">http://www.bio.cam.ac.uk/~awd28</a>&lt;&lt;<br>
</div></div><div>
-- <br>gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br><a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>






Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>Please don&#39;t post (un)subscribe requests to the list. Use the <br>www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>






Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a></div></blockquote></div><font color="#888888"><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">






<div><br>--</div><div>Dr. Carsten Kutzner</div><div>Max Planck Institute for Biophysical Chemistry</div><div>Theoretical and Computational Biophysics</div><div>Am Fassberg 11, 37077 Goettingen, Germany</div><div>Tel. +49-551-2012313, Fax: +49-551-2012302</div>






<div><a href="http://www.mpibpc.mpg.de/home/grubmueller/ihp/ckutzne" target="_blank">http://www.mpibpc.mpg.de/home/grubmueller/ihp/ckutzne</a></div><div><br></div></div><br></span><br></span>
</div>
<br></font></div><br></div></div>--<div><br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></div></blockquote></div><br><br clear="all"><br>-- <br><div>

Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>
Department of Biochemistry, University of Cambridge. <br>80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>&gt;&gt;<a href="http://www.bio.cam.ac.uk/~awd28" target="_blank">http://www.bio.cam.ac.uk/~awd28</a>&lt;&lt;<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>Department of Biochemistry, University of Cambridge. <br>80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>&gt;&gt;<a href="http://www.bio.cam.ac.uk/~awd28" target="_blank">http://www.bio.cam.ac.uk/~awd28</a>&lt;&lt;<br>






</div>
</div></div><br></div></div>--<div class="im"><br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></div></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>

ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov" target="_blank">cmb.ornl.gov</a><br>

865-241-1537, ORNL PO BOX 2008 MS6309<br>
</font><br>--<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br><br clear="all"><br>-- <br>Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate<br>

Department of Biochemistry, University of Cambridge. <br>80 Tennis Court Road, Cambridge CB2 1GA, UK.<br>&gt;&gt;<a href="http://www.bio.cam.ac.uk/~awd28">http://www.bio.cam.ac.uk/~awd28</a>&lt;&lt;<br>
</div>