View previous topic :: View next topic |
Author |
Message |
Andrey Grozin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Nov 2015 Posts: 11
|
Posted: Sun Feb 02, 2025 7:38 am Post subject: cannot git pull the Gentoo repo |
|
|
Today I've got an unexpected problem. As usual, I said `git pull` in the directory with the Gentoo repo. All changed ebuilds etc. were obtained. But at the end `git` produced an error message that `.git/HEAD.lock` exists. Maybe, `git` has terminated abnormally last time. Well, maybe, I don't remember. But currently there is no `.git/HEAD.lock`. When I say `git pull` I get
Code: |
error: cannot pull with rebase: Your index contains uncommitted changes.
error: Please commit or stash them.
|
`git status` produces zillion uncommitted changes - all changes downloaded today, before this error message about `.git/HEAD.lock` appeared.
How can I return this git directory to a usable state? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Banana Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
![](images/avatars/5204386264b863c6da7ffb.jpg)
Joined: 21 May 2004 Posts: 1889 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sMueggli Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 03 Sep 2022 Posts: 542
|
Posted: Sun Feb 02, 2025 8:59 am Post subject: |
|
|
With
If the problem reappears, you should investigate why that happens. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Andrey Grozin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 12 Nov 2015 Posts: 11
|
Posted: Sun Feb 02, 2025 10:05 am Post subject: |
|
|
Thank you very much, it works. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|