error: update_ref failed for ref 'refs/heads/~~': cannot lock ref 'refs/heads/브랜치': is at aaa but expected bbb
해결방법
커맨드 창에서 git update-ref [위에 refs/heads/~~ 부분] [but expected 뒤에있는 bbb]
git update-ref refs/heads/~~ bbb
위의 오류 해결 후 또다른 오류 발생
fatal: could not read log file '.git/rebase-merge/message': No such file or directory error: could not commit staged changes.
해결방법
참고로 커밋 내용이 다 날아가기때문에 변경사항을 commit 하거나 stash 한 후에 실행해야함
git rebase --abort
https://trustit.tistory.com/170
git error: update_ref failed for ref
commit message 변경 1. git log 확인 2. commit id 확인 3. git rebase --interactive [commit id] 4. pick을 edit로 변경 5. 저장 - 저장 command > !wq - 나가기 > :q! 6. git commit --amend, git rebase --continue를 실행 ----------------- 아래
trustit.tistory.com
https://wiper2019.tistory.com/173
[Git] fetch 후 에러(Failed to lock refs/heads/master)
문제 발생 Failed to lock refs/heads/master 메세지가 계속 출력되는 에러가 발생했다. cannot lock ref 'refs/heads/master': is at 9ce4fa9196311a76c786d64227affcef6f273092 but expected dac5ce6c9ffb5500244e72e92e9a4c7ca3ae34c4 해결 방안
wiper2019.tistory.com
fatal: Could not open file .git/rebase-merge/done for reading: No such file or directory
I was going to do a rebase to delete my last commit but I didn't want to finish so I exited. (I realize this probably was not the best way to go about it, but it's done) I guess I did it wrong beca...
stackoverflow.com
'git' 카테고리의 다른 글
이클립스 깃허브 연동 에러 해결 (0) | 2024.08.09 |
---|