1

I have a post-update hook like this:

#!/bin/sh
echo
echo “**** Pulling changes into Dev [Hub’s post-update hook]”
echo
case “ $1 ” in
*‘refs/heads/dev’*)
cd /home/user/www/dev/ || exit
unset GIT_DIR
git pull hub dev
echo
echo “Dev was pulled”
echo
;;
esac

Git is telling me that the local and remote are up to date, but they aren't. Local is a more recent version then the remote.

When I git pull I get:

Already up-to-date.

When I do a git status on the REMOTE I get:

On branch dev nothing to commit (working directory clean)

(previously, when doing git status on REMOTE I've seen that a file (.htaccess one) was not added, so remotely I did, git add . and git commit -a -m "added htaccess remotely", they I did git pull locally, but I still get: Already up-to-date.)

I've tried to change something locally (in hope that it would pushed that specific change and all the other changes previously done) - no luck.

Can anyone help me to get all repos synchronized again ?

git remote -v

hub ssh://user@site.org/home/user/private/repos/site_hub.git (fetch)

hub ssh://user@site.org/home/user/private/repos/site_hub.git (push)

hub is a bare repo.

4

0 回答 0