[gmx-users] help with git

Carsten Kutzner ckutzne at gwdg.de
Tue Aug 24 13:10:08 CEST 2010


On Aug 24, 2010, at 12:57 PM, Alan wrote:

> Hi there,
> 
> I want to change from release-4-5-patches to master
> 
> I am trying:
> 
> git reset master
> git checkout master
> 
> git pull
> error: Your local changes to 'include/resall.h' would be overwritten by merge.  Aborting.
> Please, commit your changes or stash them before you can merge.
> 
> git stash
> Saved working directory and index state WIP on master: 5e3473a Merge branch 'release-4-5-patches'
> HEAD is now at 5e3473a Merge branch 'release-4-5-patches'
> 
> But I don't want branch 'release-4-5-patches'!
> 
> Indeed, I am finding git very annoying to use.
> 
> All I wanted in svn lingo is to change to a branch and if there's conflict, ignore all changes in my side and revert any modification to what's in the repository.
git reset --hard 
will remove all your modifications to that branch that are not checked in yet. You might
want to save include/resall.h elsewhere if you still need your modifications.

Then 
git checkout master

will check out the master branch. You might need to "git pull" after you checked
out the master so that you are up-to-date with the gromacs repository.

Carsten

> 
> Is it possible with git?
> 
> Thanks,
> 
> Alan
> 
> 
> -- 
> Alan Wilter S. da Silva, D.Sc. - CCPN Research Associate
> Department of Biochemistry, University of Cambridge. 
> 80 Tennis Court Road, Cambridge CB2 1GA, UK.
> >>http://www.bio.cam.ac.uk/~awd28<<
> -- 
> gmx-users mailing list    gmx-users at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-users
> Please search the archive at http://www.gromacs.org/search before posting!
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
> Can't post? Read http://www.gromacs.org/mailing_lists/users.php


--
Dr. Carsten Kutzner
Max Planck Institute for Biophysical Chemistry
Theoretical and Computational Biophysics
Am Fassberg 11, 37077 Goettingen, Germany
Tel. +49-551-2012313, Fax: +49-551-2012302
http://www.mpibpc.mpg.de/home/grubmueller/ihp/ckutzne




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20100824/bd122e63/attachment.html>


More information about the gromacs.org_gmx-users mailing list