I have got error similar to one described in http://www.mail-archive.com/cygwin at cygwin.com/msg114840.html
Cygwin works fine until I install screens, try using git in screens, get error related to git repository name in prompt and then uninstall screens. In screens: sh: __git_ps1: command not found omarchuk@OMarchuk /cygdrive/c/git/gpag $rm /cygdrive/c/git/gpag/.git/index.lock rm: cannot remove `/cygdrive/c/git/gpag/.git/index.lock': No such file or directory sh: __git_ps1: command not found Then: omarchuk@OMarchuk /cygdrive/c/git/gpag (master)$git commit Projects/web/src/com/luxoft/edms/gpag/web/files/DocumentBean.java Projects/web/src/com/luxoft/edms/gpag/web/navigation/MainMenueBean.java 6 [main] git 12192 C:\cygwin\bin\git.exe: *** fatal error - could not load C:\WINDOWS\system32\winmm.dll, Win32 error 487 Stack trace: Frame Function Args 00229AF4 6102792B (00229AF4, 00000000, 00000000, 00000000) 00229DE4 6102792B (6117DC60, 00008000, 00000000, 6117F977) 0022AE14 61004F3B (6117F101, 0022AE40, 6C2E6D6F, 666F7875) 0022B074 6100176E (610EECC1, 0022B0A0, 70697263, 690A3B74) 0022B0B8 6115DE2C (6123D0E0, 666F7875, 64652E74, 672E736D) 0022B0E8 610EF04E (0022B130, 00000000, 726F706D, 6F632074) 0022B148 610C2C45 (0053A820, 00000000, 00000124, 00000010) 0022B168 00467C20 (0053A820, 00000124, 00000010, 00482D3E) 0022B198 00482F4A (0022C2D4, 746E656D, 6E616542, 74786520) 0022C298 0048315B (7FF80000, 00022468, 00000000, 006E0910) 0022C2F8 00485A04 (7FF80000, 00022468, 004FF6E4, 006CE684) 0022C338 00485A84 (00000001, 00000003, 00605908, 00000002) 0022C378 00485CBA (006CE684, 00000005, 0022C458, 00000001) 0022C3B8 00485E3A (006CE684, 00605908, 0022C458, 00000001) 0022C438 0046DD75 (00550E00, 00605908, 0022C458, 00000000) 0022C4C8 004179C9 (00510B90, 00000001, 00000000, 00000000) End of stack trace (more stack frames may be present) Hangup omarchuk@OMarchuk /cygdrive/c/git/gpag (master)$git commit Projects/web/src/com/luxoft/edms/gpag/web/files/DocumentBean.java Projects/web/src/com/luxoft/edms/gpag/web/navigation/MainMenueBean.java fatal: Unable to create '/cygdrive/c/git/gpag/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue. omarchuk@OMarchuk /cygdrive/c/git/gpag (master)$rm /cygdrive/c/git/gpag/.git/index.lock omarchuk@OMarchuk /cygdrive/c/git/gpag (master)$uname -a CYGWIN_NT-5.1 OMarchuk 1.7.8(0.236/5/3) 2011-03-01 09:36 i686 Cygwin -- King Oleg ---- -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple