On Friday 13 July 2012 02:39 PM, Jaikiran Pai wrote:
I have been looking around some git docs, but can't find an
answer to
this. So asking here - Is it possible to set this option per (remote)
repo level instead of per (local) branch level? For example,
irrespective of which local branch I'm on (which I later push upstream),
I don't want to accidentally push non-fast forwardable revisions to
upstream. Is that possible?
Well, not accidentally since git does prevent it unless
you use -f
option during push. So I guess what I am looking for is, as an admin
configure my remote repo to only allow fast forward commits. Now that I
think of it I guess this is more of a github option than git.
-Jaikiran
-Jaikiran
On Thursday 08 September 2011 12:20 AM, Jason T. Greene wrote:
> If you want to prevent merge commits from ever entering a particular
> branch of yours, say master, just do this:
>
> git config branch.master.mergeoptions --ff-only
>
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev