Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8503077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:39:34+00:00 2026-06-11T01:39:34+00:00

When I try to push to my git repo (on an HTTPS server) i

  • 0

When I try to push to my git repo (on an HTTPS server) i get the following error:

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

I don’t know if this is relevant, but I accidentally did a

git add .git

It didn’t seem to do anything, so I assumed git was jut smart enough to ignore me.

Why is git failing to push, and how can I fix it?

Pull works fine.

Extra info:
I have another local clone, which I can still push to the central repo from. I think this suggests I have done something to my .git directory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:39:35+00:00Added an answer on June 11, 2026 at 1:39 am

    This seemed to fix it:

    1. Pushing the changes to another local clone (the beauty of DVCS),
    2. then pushing to the central,
    3. then in the original clone, pulling from central
    4. and pushing again.

    I’m not sure why, but it works now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I try and pull: error: cannot open .git/FETCH_HEAD: Permission denied When I try
I try push a local repo to github and get such a message: The
To git@github.com:xxx/xxxxx.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs
I'm cloning this repo: https://github.com/freeformz/sinatra-jruby-heroku.git to try and use JRuby/Sinatra on Heroku's Cedar stack.
What would possibly cause a 'git push' to try and commit to two branches?
Possible Duplicate: git push error '[remote rejected] master -> master (branch is currently checked
My situation is the following: I have a git Repo A which contains a
I have been using git to push my local code to a server. I
I try to push changes from my local repo to a remote repo. When
I give up! Whenever I try to push I get a stupid: ! [rejected]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.