Hi William,

thank you.
You're right, i want  to copy the branch master state of my remote
repository to my local branch master and i I think the command is what I'm
looking for.

But what to do before? Must i go into the local branch and then fetch from
server?
For example I have a local repository in directory "mylocal".  (It was a
cvs ckecked out directory, now I init a git repository in it)
cd mylocal
git remote add myserver user@myserver:/var/www/server_git
fetch myserver
git reset --hard origin/master

Is it correct?


Stephan


2013/9/13 William Seiti Mizuta <william.miz...@gmail.com>

> Hi Stephan,
>
> do you want to copy the branch master state of your remote repository to
> your local branch master? If yes, you can do it using the command: git
> reset --hard origin/master
>
> With that you will lose all changes that are in your local branch but not
> in your remote branch.
>
>
> William Seiti Mizuta
> @williammizuta
> Caelum | Ensino e Inovação
> www.caelum.com.br
>
>
> On Fri, Sep 13, 2013 at 5:35 PM, Stephan Nikolaus <
> stephan.nikol...@googlemail.com> wrote:
>
>> Hi,
>>
>> i have a local repository and want to change the master branch to a
>> server git. (I just don't want to delete all files in repository and then
>> clone the server files)
>> How to do that? I guess I have to fetch server data into local dir, merge
>> an push it.
>> Can someone please explain me how to do?
>>
>> Regards,
>>
>> Stephan
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Git for human beings" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to git-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/tX2HCxXiNds/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
SPD Burgwedel
Stv. Vorsitzender und Mitgliederbeauftragter
Großburgwedeler Str. 15a
30938 Burgwedel
05139/ 97 14 50
01525/ 890 78 20

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to