[sr-dev] git: updating local git repo while pending changes

Michal Matyska michal.matyska at iptel.org
Thu Oct 7 16:40:40 CEST 2010


I think "git stash" could help you a lot...

Michal

Ovidiu Sas píše v Čt 07. 10. 2010 v 10:21 -0400:
> I see.  I worked before with bitkeeper and I really liked the
> park/unpark feature.
> I guess I will need to cook a script to save the diff as a patch,
> restore the repo to clean state, pull and reapply the saved patch.
> 
> Thanks,
> Ovidiu
> 
> On Thu, Oct 7, 2010 at 10:11 AM, Jan Janak <jan at ryngle.com> wrote:
> > On Thu, Oct 7, 2010 at 9:49 AM, Ovidiu Sas <osas at voipembedded.com> wrote:
> >> Hello all,
> >>
> >> Sometimes, while doing coding on my local git repo, I would like to
> >> synchronize my local repo with the remote one but without commiting my
> >> changes.
> >> Is there a way to do this in a simple and elegant matter?
> >
> > The synchronization in git works by the way of transferring commit
> > objects, so no, I don't think so.
> >
> > Also, your local uncomitted modifications are kept in files that
> > you've checked out; remote/shared repositories are usually "bare",
> > that means they have no checked out files. All they contain is the
> > commit object database files (normally stored under .git).
> >
> > -Jan
> >
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev





More information about the sr-dev mailing list