# Re: Deleting binary file

3 messages from 2006-11-09 to 2006-11-09. Participants: Jakub Narebski, Kirill Shutemov.
Thread: https://gitlist.dev/t/43369

## Kirill Shutemov, 2006-11-09 09:47

Subject: Deleting binary file
Message-ID: <1d592d70611090147p6f10f921s740e3cc19cb67c09@mail.gmail.com>
URL: https://gitlist.dev/e/1d592d70611090147p6f10f921s740e3cc19cb67c09%40mail.gmail.com

```
Why can't I delete binary file via patch?

> git-init-db
defaulting to local storage area
> cp /bin/sh .
> git-add sh
> git-commit -m 'test'
Committing initial tree efa3b1f9fdc4cdb8aab5bf869f580664a52ac04c
> git-rm sh
rm 'sh'
> rm sh
> git-commit -m 'test'
> git-format-patch HEAD^
0001-test.txt
> git-reset --hard HEAD^1
> git-applymbox 0001-test.txt
1 patch(es) to process.

Applying 'test'

error: No changes
> cat 0001-test.txt
From 9fd9a46e5404e7c389cfb48026b68d46faa47081 Mon Sep 17 00:00:00 2001
From: Kirill A. Shutemov <k.shutemov@gmail.com>
Date: Wed, 8 Nov 2006 11:19:35 +0200
Subject: [PATCH] test

---
sh |  Bin
1 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/sh b/sh
deleted file mode 100755
index a57a92a..0000000
Binary files a/sh and /dev/null differ
-- 

```

## Jakub Narebski, 2006-11-09 09:52

Subject: Re: Deleting binary file
Message-ID: <eiutmq$ncp$1@sea.gmane.org>
URL: https://gitlist.dev/e/eiutmq%24ncp%241%40sea.gmane.org
In-Reply-To: <1d592d70611090147p6f10f921s740e3cc19cb67c09@mail.gmail.com>

```
Kirill Shutemov wrote:

> Why can't I delete binary file via patch?
> 
>$ git-init-db
> defaulting to local storage area
>$ cp /bin/sh .
>$ git-add sh
>$ git-commit -m 'test'
> Committing initial tree efa3b1f9fdc4cdb8aab5bf869f580664a52ac04c
>$ git-rm sh
> rm 'sh'
>$ rm sh
>$ git-commit -m 'test'
>$ git-format-patch HEAD^

What happens if you use --binary option here?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


```

## Jakub Narebski, 2006-11-09 11:10

Subject: Re: Deleting binary file
Message-ID: <eiv28t$9l4$1@sea.gmane.org>
URL: https://gitlist.dev/e/eiv28t%249l4%241%40sea.gmane.org
In-Reply-To: <1d592d70611090147p6f10f921s740e3cc19cb67c09@mail.gmail.com>

```
Kirill Shutemov wrote:

>$ git-applymbox 0001-test.txt

Does using "git am --binary 0001-test.txt" help?
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git


```
