Alex Rivera | Logout

git push not send changes to remote git repository

Asked 2009-08-19T08:25:53.307
62

I am making changes to some file in my local git repository and then want to send the changes to the remote git repository from which the local was cloned via ssh.

After run "git commit -a" on my local side, to send the changes to the remote, I run

$ git push
Everything up-to-date

However I checked the remote files and they are not changed! Any idea?

Edit
Report

1 Answer

1

Type "git log" in your remote repository to see if it contains the newest commit.
If not, you should check the configuration of you local repository to see the remote settings.

To see the changes in different type of your remote repository:

A. If your remote repository is bare, you can find the files in the remote repository
branches/
config
description
HEAD
hooks/
info/
objects/
refs/

after new commit is pushed, files in objects/ directory would changed.

B. If your remote repository is non-bare,
type "git checkout master"
And "git status" in your remote repository to see the file status. See if some file has been modified or deleted.

answered 2012-12-19T07:05:56.577

Your Answer