dead.letter에는 git 정보가 포함되어 있습니다.

dead.letter에는 git 정보가 포함되어 있습니다.

오늘 git 저장소에 포함된 프로젝트 작업을 마친 후 dead.letter내 홈 폴더에서 다음 내용이 포함된 파일을 발견했습니다.

From laura Tue Aug  1 14:42:07 2017
Date: Tue, 01 Aug 2017 14:42:07 -0300
To: laura
User-Agent: mail v14.9.0

Subject: editor saved ``/project/path/.git/addp-hunk-edit.diff''
You were editing the file "/project/path/.git/addp-hunk-edit.diff"
at <Tue Aug  1 14:42> on the machine ``hostname''
when the editor was killed.

You can retrieve most of your changes to this file
using the "recover" command of the editor.
An easy way to do this is to give the command "vi -r /project/path/.git/addp-hunk-edit.diff".
This method also works using "ex" and "edit".

/project/path/.git/addp-hunk-edit.diff존재하지 않는다.

빠른 검색 결과 dead.letter메일 클라이언트가 이메일 전송에 실패할 때 생성되는 것으로 나타났습니다. git은 dead.letter메일 클라이언트와 어떤 관련이 있나요?

답변1

git이 문서와 직접적인 관계는 없습니다 ~/.dead.letter. git이메일을 보내보세요(또는 명령 사용 mail가능 mailx) sendmail.

프로그램에서 메시지를 보낼 수 없으므로 ~/.dead.letter표준으로 저장됩니다.사서함대부분의 UNIX 메일 클라이언트에서 읽을 수 있는 형식 파일입니다(예: mutt -f ~/.dead.letter).

이것은 내가 기억하는 한 Unix와 Linux의 표준 동작이었습니다. 목적은 갑자기 이메일 클라이언트를 종료할 때(클라이언트가 충돌하거나 종료되어 기기 연결이 끊겼습니다. 잠깐만요).

관련 정보