From: Patrick Aljord Date: Sun, 11 May 2008 15:25:04 GMT Subject: Re: Git branches - confusing behavior Message-ID: <6b6419750805110825t51730d16y211d2c502a1b302d@mail.gmail.com> In-Reply-To: <4826F72D.2070205-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> On Sun, May 11, 2008 at 8:39 AM, Dima Kagan wrote: > My proposed change shouldn't necessarily break the described workflow. Git can keep the current behavior for new branches, but automatically 'stash' the changes when checking-out an existing branch. At least having an optional parameter for "auto-stashing" will be nice. > > What do you think of that? you can do just that with an alias, in .git/config add: [alias] auto-stash = !git stash && git checkout $1 then type "git auto-stash master" or "git auto-stash some_branch" and it should stash and checkout the branch. Cheers, Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to git-users-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/git-users?hl=en -~----------~----~----~----~------~----~------~--~---