Re: How do you switch branches in a bare repo?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Adam Nielsen schrieb:
> Thanks for the suggestion!  Unfortunately it looks like I'm not allowed
> to do non-fast-forward pushes into my own repository because I keep
> getting this error:
> 
> error: denying non-fast-forward refs/heads/newbranch (you should pull
> first)
>  ! [remote rejected] newbranch~2 -> newbranch (non-fast-forward)

Perhaps non-fast-forwards are denied for a reason?

If not, then you can enable them by setting receive.denynonfastforwards to
false in the bare repository.

-- Hannes

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]