IT Share you

Github 창 : 커밋 실패 : 새 커밋을 생성하지 못했습니다.

shareyou 2020. 11. 29. 12:35
반응형

Github 창 : 커밋 실패 : 새 커밋을 생성하지 못했습니다.


나는 : http://windows.github.com/

내 현재 프로젝트에는 약 2 만 개의 파일, 약 150MB (그리고 속도가 얼마나 느린 지에 대해 말하지 않고 지금은 할 수 없음)가 있습니다. 이 오류가 발생합니다. Commit failed : Failed to create a new commit.

아무도 가지고 있지 않은 것 같습니다.

이미 폴더를 삭제하고 다시 복제했습니다. 무엇을해야합니까?

쉘을 열면이 모든 *** 충돌이 발생합니다!


편집하다:

문제 이후 나는 Git Extensions 로 전환했고 뒤돌아 보지 않았습니다!

당신의 답변에 감사드립니다


이것은 나에게 일어난 일입니다. PowerShell을 열고 "git add [file name]"명령을 사용하여 각 파일을 수동으로 커밋합니다. 추가 된 파일을 확인하려면 명령 줄에 "git status"를 입력합니다. 녹색 파일이 추가되고 빨간색 파일이 추가되지 않았습니다.

모두 추가했으면 "git commit"을 입력합니다. 그런 다음 Windows 용 Github로 돌아가서 동기화하십시오.

이 문제의 원인은 확실하지 않지만 위의 단계를 수행하면 Github가 정상적이고 멋진 동작으로 돌아갔습니다.


예기치 않은 충돌 후에도이 문제가 발생했습니다. 제안 된대로 'Open Shell'옵션을 사용하여 수정할 수 없습니다. Windows CLI ( Start -> run -> cmd) 를 열고 index.lockGitHub 폴더에서 파일을 삭제해야 했습니다.

cd \Users\myUser\my\local\github\repo
cd .git
del index.lock

그런 다음 GitHub 앱으로 돌아 가면 성공적으로 커밋되었습니다.


댓글에 따르면 일부 사용자의 경우 삭제할 파일에 .lock확장자가 없으므로 delete 명령도 del index.


Windows (7) 용 Githug를 사용하고 동일한 문제에 직면했습니다. PowerShell을 사용하는 동안 .NET에서 전체 이름과 전자 메일 주소를 입력하지 않았다는 것을 깨달았습니다 tools > options. 초보자의 실수처럼 보입니다 (그리고 저는 그렇습니다!).

도움이 되길 바랍니다!


업데이트에서 몇 가지를 커밋하십시오. 예를 들어 5입니다. 그런 다음 다른 모든 업데이트로 다른 커밋을 만듭니다.


Windows 클라이언트를 사용하고 있으며 동일한 오류가 발생합니다. 그런 다음 갑자기 app_data의 로컬 DB가 SQL 관리에서 열렸다는 것을 깨달았습니다. 일부 파일이 열리거나 다른 프로그램에서 사용되는 경우 일부 파일을 github에 커밋 할 수 없습니다.

연결이 끊어진 관리 스튜디오가 닫고 단순히 커밋했습니다.
이것은 또한 귀하의 경우 일 수 있습니다. 파일을 확인하십시오!


그래서 여러분, 이것이 제가 문제를 해결하기 위해 취해야하는 전체 단계입니다.

1) Process Explorer 사용 ( http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx에서 다운로드 할 수 있음 ) ".git \ index"를 참조하는 프로세스를 검색 한 다음 죽였습니다.

2) 그런 다음 Git Shell (Windows Power Shell)을 사용하여 저장소로 이동하여 이러한 어려움을 겪고 더 나아가 .git 폴더로 이동했습니다. (cd. \ your_respository_name \ .git). 그런 다음 해당 디렉토리 (rm -r index.lock)에서 index.lock 파일을 제거했습니다.

3) 그런 다음 동일한 디렉토리에서 git reset HEAD를 실행했습니다.

4) 그런 다음 "git add [file_name]"명령을 사용하여 각 파일을 수동으로 커밋했습니다. (git status를 실행할 때 파일이 녹색이면 성공적으로 추가되었는지 확인할 수 있습니다.

5) 다음으로 파일이 올바르게 추가되면 git commit을 실행하십시오.

6) 마지막으로 Windows 용 github로 돌아가서 모든 것을 동기화하면 제대로 작동하고 문제가 해결 될 것입니다.


이 문제는 github 클라이언트의 버그 인 것 같습니다. github 클라이언트 만 설치 한 컴퓨터에서 "항상"문제가 발생합니다. 나는 그것을 git + github PC에서 본 적이 없습니다 (나는 며칠 동안 그것을 사용하지 않았습니다). "git add." 그리고 "git commit"은 쉘에서도 저에게 효과적이었습니다.하지만 GUI가 저를 대신해야하는 것은 아닙니다.


같은 문제가 발생하여 Windows GUI를 사용하여 커밋하거나 동기화 할 수 없었지만 셸을 통해 변경 사항을 커밋 할 수있었습니다. 셸을 통해 변경 사항을 추가하면 Windows GUI가 정상적으로 동기화되기 시작했습니다. 바라건대 그것은 일회성입니다.


흥미로운 문제가있었습니다. "Combined-ForImportv4.xlsm"이라는 엑셀 파일을 열었음에도 불구하고 Git UI는 확인하는 데 문제가 없었지만 백업 파일 "~ $ Combined-ForImportv4"에 대한 OP의 주제에 오류가 발생했습니다. .xlsm "이므로 변경 사항을 무시하고 모든 작업을 수행했습니다.

추신 : 내가 Excel 파일을 Git으로 확인하는 이유는 ... 그냥 거기에 있지 않습니다 :) ...


git windows 데스크톱 커밋 도구 에서이 문제가 발생했습니다. 나는 이것을 자주 받고 있었고 Visual Studios가 파일을 잠그고 있음을 알았습니다. 이 문제를 해결하기 위해 Visual Studio를 닫고 커밋 / 동기화가 제대로 작동했습니다.


나는 방금 똑같은 문제가 있었고이 게시물에 대한 몇 가지 제안을 시도했지만 아무것도 작동하지 않았으므로 GiTHub 클라이언트에서 내가 갔던 GiTHub 클라이언트 tools -> settings에서 기본 무시 파일 추가 / 만들기 섹션을 클릭했습니다. 그런 다음 업데이트를 누르고 클라이언트를 통해 다시 커밋하십시오.


내 프로젝트가 IDE (내 경우에는 Netbeans)에서 열렸을 때 발생했습니다. 커밋하려는 파일이 일부 프로그램에서 열려 있지 않은지 확인하십시오.


C : \ Users {user} \ AppData \ Local \ GitHub \ TheLog.txt에서 로그 파일을 확인한 결과 다음 오류가 발견되었습니다.

LibGit2Sharp.LibGit2SharpException:

Could not open 'SomePath\SomeProject.opensdf':

The process cannot access the file because it is being used by another process.

I closed Visual Studio and the commit was then created successfully. n.b. I removed actual file path in the above error.


If you are new user make sure that you have confirmed your e-mail. Had same problem and confirmation fixed it!


You can manually navigate to index.lock which is found inside the hidden .git folder of your repository location. Once you delete index.lock you will be able to commit as per usual.

The easiest way to navigate to the folder will be to click on the folder breadcrumbs inside windows explorer and add \.git and press enter.


Just delete 'index.lock' in the '/.git/' directory. Solved the problem for me instantly.


I googled failed to create repository and ended up here.

My problem was that the description for my new repo was too long. There is a charlimit for the description, but GitHub tried to push it anyway and failed.


I had this happen to me and this is the easiest way to fix it:

  1. Make a copy of your local folder that has the repo and remove the .git folder form it.
  2. Delete the original repo folder with files.
  3. Re-clone the repo from GitHub with the Windows client.
  4. Delete all of the files that get cloned except for the .git folder.
  5. Copy all files from the copied folder into the new clone folder.

Add in your commit notes and the commit should work this time.


I had the same problem and I fixed it by renaming one of the file because its name was too long. This fixed the problem. Here is error message from git shell:

fatal: unable to stat 'plugins/com.napolitano.cordova.plugin.intent/example/app/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/NativeToJsMessageQueue$OnlineEventsBridgeMode$OnlineEventsBridgeModeDelegate.class': Filename too long

I REBOOTED my Windows 7 machine and tried again - IT WORKED!

I had the "Commit failed: Failed to create a new commit" and tried to delete the index or index.lock file via windows command prompt and that didn't work. I deleted it via windows explorer, that didn't work.

I tried to check credentials like another reply in this list said, but couldn't figure it out and the credentials seemed 'ok.' So - I rebooted. Viola.

I'm not sure this will help anyone, I'm not all that great w/ this stuff, but trying.

참고URL : https://stackoverflow.com/questions/11229843/github-windows-commit-failed-failed-to-create-a-new-commit

반응형