Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>After having this problem with Egit I went back to using GitBash to try to create, push and pull repositories. I was then given this error:</p> <p>Git Bash error:</p> <pre><code>fatal: http://xx.xx.x.xxx/mjtest.git/info/refs not found: did you run git update-server-info on the server? </code></pre> <p>Egit error:</p> <pre><code>Transport Error Cannot List the available branches Reason: Exception caught during execution of ls-remote command </code></pre> <p>I found that the solution to both the GitBash and the Egit error was to create an empty file called <code>git-daemon-export-ok</code>and place it directly into the <code>xxxx.git</code> root directory of the repository on the server.</p> <p><strong>The solution explained:</strong></p> <p>I set up a repository in gitstack called <code>mjtest</code> and create myself a new username and password and add myself to the repository with read and write access.</p> <p>This is what I then do in GitBash:</p> <p>I set up my local repo:</p> <pre><code>git config --global user.name "XXXXXXXX" git config --global user.email XXXXXXXX mkdir ~/mjtest cd ~/mjtest git init touch README </code></pre> <p>Then I create the empty file:</p> <pre><code>touch git-daemon-export-ok </code></pre> <p>So now we have a local repository that has a file called <code>README</code> and our <code>git-daemon-export-ok</code>file in it. We now need to copy the <code>git-daemon-export-ok</code>file and place it directly into the <code>mjtest.git</code> folder in the server. Once that is done the <code>git-daemon-export-ok</code> file can be deleted from the local repository, as it just needs to be on the server.</p> <p>Adding, Commiting and Pushing:</p> <pre><code>git add README git commit -m 'first commit' git remote add origin http://XX.XX.X.XXX/mjtest.git git push origin master </code></pre> <p>This should work and you should be able to go onto your gitstack server and see your first commit.</p> <p>I then went back onto Egit and cloned the <code>http://XX.XX.X.XXX/mjtest.git</code> repository and it worked.</p> <p>Now both push and pull work in GitBash and Egit!</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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