Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

error: cannot lock ref-Git and nasty “error: cannot lock existing info/refs fatal”

Asked by Arun Singh May 5, 2021 2.9K views 1 answer
Share

About this question

 After cloning from the remote git repository (at better codes) I made some changes, committed and tried to push:

git push origin master

Errors with:

error: cannot lock existing info/refs
fatal: git-http-push failed

This case regards already existing repository.

What I did before, was:

    git config –global http.sslVerify false
    git init
    git remote add [url]
    git clone
    change data
    git commit

              At 'bettercodes' I have no access to git log.

              I'm using Windows. The detailed error was:

              C:MyWorkStuffProjectsRubyMyProject>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

              I cloned before, then changed the code and committed.

              Your answer

              1 Answer

              More Devops discussions

              Learn & Explore

              Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

              Latest DevOps Blogs

              Guides, tips and career advice on DevOps from JanBask experts.