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 7859045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:44:45+00:00 2026-06-02T21:44:45+00:00

Using git 1.7.10 on linux I am trying to use git rebase -i on

  • 0

Using git 1.7.10 on linux I am trying to use git rebase -i on a branch of about 100 commits. I regularly but not always run into this problem:

After I have indicated which changes I want to make… eg. I just do a reword quite near the upstream part, git keeps running and shows a counter in the command line while applying the commits: like [17/100]…

This should normally be a quite smooth operation but often it stops in the middle somewhere saying:

[detached HEAD 5e1a3c8] Commit message
Author: username
1 file changed, 14 insertions(+), 3 deletions(-)
fatal: Unable to create ‘/[path to repository]/.git/index.lock’: File exists.

Could not apply 05e6b8ef Other commit message

When I run git rebase –continue I get shown the commit message of the current commit and when I close the file git rebase continues but it omits that commit… That is quite useless so for the moment I just do –abort, but it is a pain…

Maybe it will be possible to manually commit the problematic commit and then –continue, but I haven’t looked into that yet.

In any case when I go and check index.lock does not exist. Maybe it existed at the moment when git wanted to create it, but it definitely got removed before I can look at it with a file browser…

ps: I can’t seem to reproduce this if I don’t have gitg open while rebasing.

Any clues?

update: updating to gitg 2.6 seems to have solved the issue

  • 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-02T21:44:46+00:00Added an answer on June 2, 2026 at 9:44 pm

    That file is created to make sure two clients don’t interfere with each other working against the same repository. I used to get this problem with torgoisegit. It can happen at other times as well, it’s just that an interactive rebase is a fairly intensive operation, so you’re more likely to hit it then. Just close gitg and any other clients before you do your rebase.

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

Sidebar

Related Questions

I've been using Git on Linux for about a year, and everything works fine.
When using a VCS, (I use Mercurial and Git in Linux, Bash prompt), is
I'm using Git GUI on windows. My projects lie on an external linux server
I've just started using Git and it's possible I've missed something obvious, but here
After unsuccessfully trying to git push using ssh , I am ready to give
If the .git folder that was created using linux is copied to windows, will
Using the dead simple tutorial on Heroku's website and when I run git push
I want to use the zsh-git-prompt, from this repo https://github.com/olivierverdier/zsh-git-prompt , I've been using
I am trying to understand if I really have any case for using git/mercurial.
Earlier I have downloaded Linux kernel from the git repository. Now I am trying

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.