git clean

You can remove files that are not under version control from the project or local repository.

  • To clean the current project directory, go to Tools > Git > Clean Directory of Project <name> and select Current Project Directory.
  • To clean the local repository, go to Tools > Git > Local Repository and select Clean.

To clean the directory or repository:

  1. In the Clean Repository dialog, select the files to delete.

    {Clean Repository dialog}

    By default, ignored files are not selected.

  2. Select Delete to remove the selected files.

See also How To: Use Git and Git.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.