---
title: "Discussion on \"Finding and removing files added to git by accident\" | Hashnode"
description: "Discussion on \"Finding and removing files added to git by accident\". Finding and removing files added to git by accident\n2 Aug\nWritten By Roderick Kennedy\nIf for example, you've added lib files by mistake to a large git repo, and want to remove them, but don't know the exact paths, use this:  \ngit ls-files *.lib>lib.b..."
url: "https://hashnode.com/posts/finding-and-removing-files-added-to-git-by-accident/65c4c6c086836725c6e326b1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Finding and removing files added to git by accident](https://roderickkennedy.com/finding-and-removing-files-added-to-git-by-accident?utm_source=hashnode&utm_medium=feed)

Finding and removing files added to git by accident 2 Aug Written By Roderick Kennedy If for example, you've added lib files by mistake to a large git repo, and want to remove them, but don't know the exact paths, use this: git ls-files \*.lib>lib.b...

Aug 2, 2018 · 1 min read · roderickkennedy.com  
Read the article

## Written by

[Roderick Kennedy](https://hashnode.com/@roderick)

@roderick

  
[View profile](https://hashnode.com/@roderick)

Simulation and Virtual Reality

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
