Re: git push default behaviour?
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Mar 8, 2012, 17:37 UTC
- Message-ID
- <CAHkcothno3tQG0G-5Mo7vVbKxUkNGqWd+6BRWhjnKafrSp1FTw@mail.gmail.com>
- In-Reply-To
- <4F58C977.8000400@xiplink.com>
On Thu, Mar 8, 2012 at 7:00 PM, Marc Branchaud <marcnarc@xiplink.com> wrote:
> > Perhaps --force should be changed to require an explicit ref if push.default > = matching (and the code finds that it needs to use push.default's value)?
No, it will workflow for some people. In general, --force should not be used, but when it is used, it is used for a reason. If you need another behavior like forcing only the current branch then you probably should add --force-current or something like that, but not to break what works now.
Dmitry