[Hawkular-dev] Github - Protected Branches

Thomas Segismont tsegismo at redhat.com
Thu Jan 28 12:38:02 EST 2016


Le 28/01/2016 18:31, Juraci Paixão Kröhling a écrit :
> On 28.01.2016 18:14, Peter Palaga wrote:
>> On 2016-01-28 17:54, Thomas Segismont wrote:
>>> If the Metrics repo wasn't your "origin" reference, then:
>>> "git push --force"
>>> wouldn't have corrupted it.
>>
>> huh, I did not know, origin works like this. FWIW, I stopped using
>> "origin" as a label of any remote, because I never knew what it was
>> pointing at. I started using "upstream" and "ppalaga". -- P
>
> Up to some version of git[1], "origin" is/was the default remote, so,
> "git push" pushes automatically to "origin".
>
> To me, "origin" is always my fork, as it's "my origin". I use "upstream"
> for the original repositories.
>
> [1] Not sure that's still the behavior for newer versions of git.
>

What's important is the "remote" parameter of your branch config:
===
[branch "master"]
	remote = origin
	merge = refs/heads/master
	rebase = true
===

If you work on a clone of your own fork, then origin url should point to 
your fork (unless you configure it manually)


More information about the hawkular-dev mailing list