From: Cornelius Weig <cornelius.weig@tngtech.com>
To: Hongyi Zhao <hongyi.zhao@gmail.com>, git@vger.kernel.org
Subject: Re: ``git clean -xdf'' and ``make clean''
Date: Tue, 7 Feb 2017 16:07:53 +0100 [thread overview]
Message-ID: <fe8595aa-0395-e948-13e9-f952541d106e@tngtech.com> (raw)
In-Reply-To: <CAGP6PO+qD6eRkKbWAxOfiqUQw8o+dOfgwgvt_8OxHQ5ocAopEQ@mail.gmail.com>
On 02/07/2017 03:17 PM, Hongyi Zhao wrote:
> Hi all,
>
> In order to delete all of the last build stuff, does the following two
> methods equivalent or not?
>
> ``git clean -xdf'' and ``make clean''
No, it is not equivalent.
* `make clean` removes any build-related files (assuming that the
`clean` target is properly written). To see exactly what it would do,
run `make clean -n`. Judging from your question, I think this is what
you want to do.
* `git clean -xdf` would remove any files that git does not track. This
also includes build-related files, but also any other files that happen
to be in your working directory. For example, any output from `git
format-patch` would be removed by this, but not `make clean`.
next prev parent reply other threads:[~2017-02-07 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 14:17 ``git clean -xdf'' and ``make clean'' Hongyi Zhao
2017-02-07 15:07 ` Cornelius Weig [this message]
2017-02-07 19:35 ` Jacob Keller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe8595aa-0395-e948-13e9-f952541d106e@tngtech.com \
--to=cornelius.weig@tngtech.com \
--cc=git@vger.kernel.org \
--cc=hongyi.zhao@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox