Note that there are some explanatory texts on larger screens.

plurals
  1. POGit status reports incorrect information
    primarykey
    data
    text
    <p>I had a weird issue where an entire directory in my live CRM project was corrupted after resolving some conflicts from a merge (pull) and some reverts in this live working tree clone. </p> <p><em>Config Overview</em>:</p> <p>Bare repo on testing server at <code>/git/project.git</code> this is origin master</p> <p>Publicly accessible testing branch at <code>/var/www/html/project/httpdocs</code> which is automatically updated when you <code>push origin</code> from local using <code>/git/project.git/hooks</code> shell scripts.</p> <p>Publicly accessible live version at <code>/var/www/html/project/httpdocs</code> on another server which I pull manually to; I never push anything from here. </p> <p><em>Issue</em>:</p> <p>I had to manually copy over a local copy of the directory to get the live application working again. I ended up doing a <code>git reset --hard &lt;sha1&gt;</code> on the testing working tree back to the commit I wanted to be at (because the several commits after that were just totally janked), and a <code>git update-ref refs/heads/master &lt;sha1&gt;</code> to revert my <code>origin</code>, a bare public repository, back to the same commit. </p> <p>I'm just going to delete and re-clone the live branch because I don't care about commit history there and it seems to be a bit jacked up. </p> <p>Even though I have reset both the bare repo origin master AND the testing working tree back to the same commit -- when I run git status on the testing working tree it says my branch is behind origin/master by 4 commits. </p> <p>If I try to pull origin master or push origin master it says <code>everything is up to date</code>.</p> <p>What the deal?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload