Thanks for helping. Now, I created my server repository as bare repository.
The changes from clone repositories are reflected on server although I
don't see them (I've checked when get last changes from server repository
with "fetch" and "pull").
I guess in a bare repository the files are stored in binary because There
isn't a working directory where they are physically. Truth?
2012/10/30 Thomas Ferris Nicolaisen <tfn...@gmail.com>
> On Tuesday, October 30, 2012 7:01:36 AM UTC+1, Cesar Casasola wrote:
>> I want rewrite the server repository's physical file with changes made
>> in the clone repository. How I can do this?
> I'm not sure you want to do this. First you need to get your bearings
> (orient yourself about what's going on).
> You need to get a good view of what you have locally versus what has been
> pushed to the server. The above screenshot only says that your latest
> commit deleted those three lines. It doesn't say anything about how things
> are on the server.
> Do the following:
> git remote
> You'll get a remote repository name as output. Probably it's "origin" (if
> it's something else, replace in the commands below). Now do:
> git remote show origin
> You should see a lot of information about what's on the server's
> repository. Feel free to paste it in here, and we'll explain it for you.
> Now, you want to see what commits this remote has. Do
> git fetch origin
> git log --graph --oneline --decorate --all
> This will show you a graphical view of which commits are where. You'll
> also be able to recognize what state the server repository is in by looking
> for branches like "origin/master".
> If something still seems fishy, or you cannot push your changes to the
> server, can you get hold of the configuration (.gitconfig file or
> .git/config file) on the server's repository, and paste it in here? I
> suspect that perhaps the server repository is not configure to be a *bare*
> as it should be.
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> To post to this group, send email to email@example.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at