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 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.