I set up a repository (git init
) on an existing unversioned sourcetree in production (don't tell me).
After the initial import commit I cloned the repo on my dev machine and started editing.
After the first commit/push everything seemed normal on my local copy but then on the prod server git pull
always said "Already up-to-date." and the changes were shown as local modification "negated".
To clarify what I mean with negated: suppose that beside editing, I've added a file (myfile
) on my local copy and comitted/pushed it.
What I'll see on the server will be:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
# deleted: myfile
along with a series of:
# modified: other_file
that reflect the files I just committed but with my changes "reverted". History in git log seems linear and consistent.
This is the content of .git/config on the server:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = user@host:repo
[branch "master"]
remote = origin
merge = refs/heads/master
On my local copy it's the same plus:
ignorecase = true
precomposeunicode = false
in the [core] section.
- dev machine git version 1.8.1.1
- prod machine git version 1.5.6.5 (I know, it's old, but I can't update it right now)
Could be something relative to tracking? I'm quite baffled right now and to make it worse, seems like I'm the only one on the whole internet experiencing something similar.