Harsha's solution works fine for me. As Roshan mentioned we cannot do it on
the server side. Git doesn't allow it. So if we want to create a branch
without checking-out the branch that we are going to branch from, Harsha's
solution works like a charm.

Thanks.


On Thu, Jul 24, 2014 at 11:07 PM, Roshan Wijesena <[email protected]> wrote:

> Hi Harsha,
>
> I just saw that. +1 for that solution it might work :)
>
> Regards
> Roshan
>
>
> On Thu, Jul 24, 2014 at 11:06 PM, Harsha Thirimanna <[email protected]>
> wrote:
>
>> Hi Roshan,
>>
>> Did you follow what I had put here ?
>>
>>
>>
>>
>> *Harsha Thirimanna*
>> Senior Software Engineer; WSO2, Inc.; http://wso2.com
>> * <http://www.apache.org/>*
>> * email: **[email protected]* <[email protected]>* cell: +94 71 5186770  ,
>> +94 *
>> *774617784 twitter: **http://twitter.com/
>> <http://twitter.com/afkham_azeez>*
>> *harshathirimann linked-in: **http:
>> <http://lk.linkedin.com/in/afkhamazeez>**//www.linkedin.com/pub/harsha-thirimanna/10/ab8/122
>> <http://www.linkedin.com/pub/harsha-thirimanna/10/ab8/122>*
>>
>>  *Lean . Enterprise . Middleware*
>>
>>
>>
>> On Thu, Jul 24, 2014 at 10:58 PM, Roshan Wijesena <[email protected]>
>> wrote:
>>
>>> AFAIK you can't do that unless you are on git hub or something. GIT
>>> perform almost all of his commands on client side where you must clone it
>>> first but there are very few commands available to perform on server such
>>> as [1].
>>>
>>> [1] https://www.kernel.org/pub/software/scm/git/docs/git-ls-remote.html
>>>
>>> Regards
>>> Roshan.
>>>
>>>
>>> On Thu, Jul 24, 2014 at 11:49 AM, Samith Dassanayake <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>> Can we create a git branch remotely without locally checking out the
>>>> branch that we are going to do branching from. For example I have a branch
>>>> *foo* in https://somerepo/.git and I want to create a branch *bar* in
>>>> the same repo  https://somerepo/.git from the branch *foo, *without
>>>> checking out the branch *foo* locally. Can we do that?
>>>>
>>>> Thanks.
>>>>
>>>> --
>>>> Best Regards
>>>>
>>>> Samith Dassanayake
>>>> Software Engineer, WSO2 Inc.
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Roshan Wijesena.
>>>  Senior Software Engineer-WSO2 Inc.
>>> Mobile: *+94752126789*
>>> Email: [email protected]
>>> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
>>> lean.enterprise.middleware.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>
>
> --
> Roshan Wijesena.
> Senior Software Engineer-WSO2 Inc.
> Mobile: *+94752126789*
> Email: [email protected]
> *WSO2, Inc. :** wso2.com <http://wso2.com/>*
> lean.enterprise.middleware.
>



-- 
Best Regards

Samith Dassanayake
Software Engineer, WSO2 Inc.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to