หลังจากโคลนนิ่งจากที่เก็บรีโมต git (ที่ดีกว่าโค้ด) ฉันทำการเปลี่ยนแปลงบางอย่างมุ่งมั่นและพยายามที่จะผลักดัน:
git push origin master
ข้อผิดพลาดกับ:
ข้อผิดพลาด: ไม่สามารถล็อคข้อมูลที่มีอยู่ / อ้างอิง
ร้ายแรง: git-http-push ล้มเหลว
กรณีนี้พิจารณาที่เก็บข้อมูลที่มีอยู่แล้ว
สิ่งที่ฉันทำก่อนหน้านี้คือ:
git config –global http.sslVerify falsegit initgit remote add [url]git clone- เปลี่ยนข้อมูล
git commit
ที่ 'bettercodes' ฉันไม่สามารถเข้าถึงบันทึก git
ฉันใช้ Windows ข้อผิดพลาดโดยละเอียดคือ:
C:\MyWorkStuff\Projects\Ruby\MyProject\>git push origin master
Unable to create branch path https://user:password@git.bettercodes.org/myproject/info/
error: cannot lock existing info/refs
fatal: git-http-push failed
ฉันโคลนมาก่อนจากนั้นเปลี่ยนรหัสและมุ่งมั่น
git fetch git pull