git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git crash in Ubuntu 12.04

From
Thomas Rast <trast@inf.ethz.ch>
Date
Apr 19, 2013, 07:53 UTC
Message-ID
<87zjwvt0qu.fsf@linux-k42r.v.cablecom.net>
In-Reply-To
<CAJiNi_HA5bNO8gMHkts_e+dWG26n=S7MRF5wc_L+v=rbnM91oQ@mail.gmail.com>
Sivaram Kannan <siva.devel@gmail.com> writes:
Show 6 quoted lines
> Hi,
>
> The git crashed during one of the commits by a developer I think, the
> remote is not even showing the working branch. The local branch of is
> all right, but the remote repo is corrupted and could not git fsck
> also. Is restoring the last night's backup is my only option??

By commit, do you mean push? I.e., something crashed while a push was going on?

The recovery strategy depends a lot on how valuable/recoverable the work that happened since the last backup was, but restoring from backup, running 'git fsck' on all involved repos (including devs' workstations!) and then having the devs re-push what they had locally seems like a good strategy to me.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Sivaram KannanNext: Duy Nguyen
Message 11 of 13 in “Git crash in Ubuntu 12.04”
  1. Sivaram KannanApr 10, 2013
  2. Thomas RastApr 10, 2013
  3. Sivaram KannanApr 11, 2013
  4. Konstantin KhomoutovApr 11, 2013
  5. Sivaram KannanApr 12, 2013
  6. Konstantin KhomoutovApr 12, 2013
  7. Sivaram KannanApr 17, 2013
  8. Duy NguyenApr 17, 2013
  9. Sivaram KannanApr 18, 2013
  10. Sivaram KannanApr 18, 2013
  11. Thomas RastApr 19, 2013
  12. Duy NguyenApr 19, 2013
  13. Sivaram KannanApr 24, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.