On Dec 9, 10:53 am, Marze <
superage...@gmail.com> wrote:
> I set up the origin repository as commented in the screencast and then
> I push some changes, then I delete my local copy and clone again from
> the origin and everything is OK
>
> But then I log into the server and I look into the origin copy, but my
> changes are not applied there.
This is a great observation and can be confusing. I've experienced
this when working from backups of my repositories.
Git keeps all branches, tags, and objects in a database inside
the .git directory. That will always be up to date when you push to
it, but it won't necessarily update the working directory on the
server (i.e. the non-hidden directories and files you see inside the
repository).
The easiest way is just to clone again, as you noticed. You could also
manually merge the master branch on the server with its own database
(try "git merge master").
There are more complicated ways of keeping it in sync, but cloning is
the easiest way.
Geoffrey Grosenbach
http://peepcode.com