Git push to a remote not updating files
<p>I have a git repo set up with two remotes ORIGIN and WEB both are bare.</p>

<p>When pushing to ORIGIN the push completes the log shows the commit and the files are updated.</p>

<p>When pushing to WEB the push completes (a subsequent push says Everything up to date). The log on the web remote shows the commit occurred successfully but none of the files are modified according to the commit.</p>

<p>What could be going wrong please?</p>

<p>EDIT 1 - commands and replies as requested</p>

<pre><code>local$  git branch
* master

remote$ git branch
* master


local$ git add newfile
local$ git commit -m "added newfile"

[master 591680a] added newfile
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 public_html/newfile


local$ git push web master

Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 324 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
To ssh://user@myhost/home/user
c5b7713..591680a  master -&gt; master


remote$ git log

commit 591680a73fdf535c44031cca545b2a47e8421fac
Author: Matthew Slight &lt;matthew@slight.me&gt;
Date:   Mon Oct 17 06:24:10 2016 +0400

added newfile


remote$ ls newfile

No such file or directory
</code></pre>

<p>Thanks,
Matthew</p>