Github for windows crashing several times a day

I recently started working with Github through my native Windows application, but it is very good, but it crashed so often, and the terrible thing is that I lost all the latest changes after it crashed. All local files will be rolled back to the latest version of a successful commit or synchronization.

I'm on a Windows 8 64-bit machine. Any ideas?

Exact Error After Failure Couldn't find a HEAD in this repository

+4
source share
3 answers

I sent an email to GitHub support for Windows. Their answer was as follows:

Hello David,

I apologize for the trouble.

I was able to reproduce this problem and published a report for our developers. The reason the application crashes is probably due to merge conflicts between local and remote repositories.

The easiest way to enable this is to go into the repository that says " failed looking for HEAD " by closing this popup and clicking Tools -> Open a Shell Here .

  • From the shell, you can run ' git reset --merge ' to cancel the merge that caused GitHub for Windows to crash.
  • From there, run the ' git checkout master ' to switch from the detached HEAD .
  • After that, run ' git pull ' in the shell to remove any new changes. He will ask you to fix any merge conflicts (which led to the failure of the application).

Once you fix merge conflicts in files, you should correctly synchronize them in GitHub for WIndows.

I tested this problem, and after I resolved the conflicts with the initial failure, I no longer had any problems with GitHub for Windows. This correctly prompted me to open the shell and resolve merge conflicts, not crashing.

Let me know if you have any further questions and hopefully we will have a fix soon.

Best Steve

+9
source

This is the solution I got from Github support. I will copy and paste the exact text here:

The easiest way to resolve this is to go into the repository that says โ€œcould not find HEADโ€ by closing this pop-up window and clicking โ€œToolsโ€ โ†’ โ€œOpen Shell Hereโ€. From the shell, you can run 'git reset --merge' to cancel the merge that caused GitHub for Windows to crash. After that, run 'git pull' in the shell to remove any changes. This will prompt you to fix any merge conflicts. After you fix merge conflicts in files, you must correctly synchronize them in GitHub for WIndows.

I tested this problem, and after I resolved the conflicts with the initial failure, I no longer had any problems with GitHub for Windows. This correctly prompted me to open the shell and resolve merge conflicts, not crashing.

0
source

I had this problem after I made an intermittent change in my .gitconfig file.

I only discovered the problem after I tried to use TortoiseGIT, and described the error in it, stroking the configuration file with an unexpected token.

So, the fix was to fix the bad .gitconfig file.

0
source

Source: https://habr.com/ru/post/1438389/


All Articles