Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot push commits to a remote repository - GitHub
    primarykey
    data
    text
    <p>I have an Android project I was working on in Eclipse. I created an account for myself on github and pushed code within the project to the online remote repository using the GitHub for Mac client. Subsequently, I made a couple more minor commits to the code and all went well. </p> <p>Now the code has undergone some significant changes and when I try to commit using the Mac client, I get the following error message on Sync:<br> <code>Sync Failed: Please commit all your changes before syncing.</code> </p> <p>To get around this, I tried the following:<br> 1. Tried to use <code>git push origin/master</code> from the command line. This resulted in <code>project/info/refs not found: did you run git update-server-info on the server?</code><br> 2. I checked if the repository name, location etc. were all correct and they were. </p> <p>My question(s):<br> 1. There are a large number of <code>.class</code> files which show up in the Changes section. Why do they show up given that .class files are included in <code>.gitignore</code>? Now that they have shown up, is it necessary to select and commit them too?<br> 2. What is the meaning of the error message above and how do I get rid of it? </p> <p><strong>EDIT 1:</strong><br> After the following commands:<br> 1. <code>git ls-tree -r master | grep .class</code> - this showed that <code>.class</code> files were also added to the repository.<br> 2. <code>git rm **/*.class</code> to remove all <code>.class</code> files from the repository.<br> 3. <code>git commit -m "remove class files</code><br> 4. <code>git push origin master</code> results in: </p> <pre><code>fatal: https://github.com/user/project.git/info/refs not found: did you run git update-server-info on the server? </code></pre> <p>Also, running <code>git status</code> on the command line shows the following line: </p> <pre><code># On branch master # Your branch is ahead of 'origin/master' by 16 commits. # </code></pre> <p>Is this something of concern?</p> <p>I have been through a lot of threads on this topic and taken a look at stuff like SSH-keygen but I dont think that is the solution to my problem. I am a newbie to git and have used only cvs before, so please dumb-down your answers, if possible. </p> <p>My <code>.gitignore</code> file: </p> <pre><code># built application files *.apk *.ap_ # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # Eclipse project files .classpath .project # Proguard folder generated by Eclipse proguard/ # Intellij project files *.iml *.ipr *.iws .idea/ *.class *.class *.class *.jar *.class *.class bin/dexedLibs/slf4j-android-1.6.1-RC1-e5ffa87f4686586f2e03d9069f131ba3.jar *.class </code></pre>
    singulars
    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.
 

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