replacing directory contents in one change
Matt Mackall
mpm at selenic.com
Thu Sep 4 14:57:24 UTC 2014
On Tue, 2014-09-02 at 11:36 -0700, Taylor Holliday wrote:
> Hi!
>
> How can I replace the contents of a directory in one change?
$ hg rm mydirectory # remove tracked files
$ rm -rf mydirectory # remove untracked files
$ mkdir mydirectory # recreate
$ ??? # put stuff in there
$ hg add mydirectory # track all new files
$ hg status # sanity check
$ hg commit # commit it
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list