[Kde-pim] Re: Pushing a single commit in git

Christian Mollekopf chrigi_1 at fastmail.fm
Mon Jan 3 21:40:24 GMT 2011


On Monday 03 January 2011 22:07:05 Torgny Nyblom wrote:
> On Monday 03 January 2011 20.47.09 David Jarvie wrote:
> > How can I push a commit for one specific file to the git repository? I've
> > committed various changes locally, but I currently only want to push one
> > of them to the kdepim repository. I've looked at git help and several
> > cheat sheets etc, but can't find how to do it.
> 
> As far as i know you cannot :( One reason to use local branches, something
> I always remember after the fact that needed one :)
just make "git stash" which will save all your uncommited changes, and reset 
all files to the latest commit. You can then commit.

Afterwards reapply your changes with "git stash apply"
> 
> /Regards
> Torgny
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list