Note that there are some explanatory texts on larger screens.

plurals
  1. POWant to go back to old git commit
    text
    copied!<p>Ok, I think I've screwed things up, I am working on a project and using git as version control:</p> <p>I think I screwed up somewhere along the lines and now when I say git status I get:</p> <pre><code># Not currently on any branch. # Changes not staged for commit: # (use "git add &lt;file&gt;..." to update what will be committed) # (use "git checkout -- &lt;file&gt;..." to discard changes in working directory) # # modified: Cocina/bin/Debug/Cocina.exe # modified: Cocina/bin/Debug/Cocina.pdb # modified: Cocina/obj/x86/Debug/Cocina.exe # modified: Cocina/obj/x86/Debug/Cocina.pdb # modified: Viernes 7.suo # # Untracked files: # (use "git add &lt;file&gt;..." to include in what will be committed) # # Cocina/Info.cs # Cocina/bin/Debug/Cocina.vshost.exe.manifest # Viernes 7/Properties/DataSources/ # Viernes 7/Table.cs # Viernes 7/bin/Debug/Viernes 7.vshost.exe.manifest # Viernes 7/obj/x86/Debug/ResolveAssemblyReference.cache # back/ # tables/ no changes added to commit (use "git add" and/or "git commit -a") </code></pre> <p>I have everything I did [here][1], but it's a quite long, but maybe it help out.</p> <p>The only thing I know for a fact is that in this commit I am sure everything is working as I wanted, and them everything started going south with the merges...</p> <pre><code>PS C:\Users\Trufa\Documents\Visual Studio 2010\Projects\Viernes 7&gt; git commit -am "the lisview now saves indexes of allr eady clicks and deletes when table closes" </code></pre> <p>Can I go back and check how the files where at that moment?</p> <hr> <p>Sorry to the answerers I lost my Internet connexion right after I posted the question!</p> <p>So <strong>UPDATE:</strong></p> <p>I had a copy of git gui from github that helped me visualize what the different commits.</p> <p>There was some kind of a conflict with the .exe 's and it prevented me from doing more or less anything I couldn't merge and I couldn't commit and I couldn't check out so what I did was copied my non working but correct commit and put in into another project in the same solution. </p> <p>So the question is what should I do now?</p> <p>I would be happy to "start" over, I mean at this point the project is working as it should so I would like to commit it, so now, what should I do?</p> <p>I guess the whole problem was for not using a complete gitignore file, what happens if I add it now?</p> <p>So my question is what should I do now, I'm kind of afraid of braking things because I'm on a hurry, what is the simplest solution of all? Is it a big overkill to start the git repo from scratch, delete the git and start over from this point since It's working?</p> <p>I know this sounds a little bit mediocre but I don't have much time so I really don't want to be playing around learning about git, I'll have time for that later, now I want an easy fix.</p>
 

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