Leo
Leo

Reputation: 35

Removing git untracked files from status without deleting from HD

I'm new to git and on "git status" I find my hard drive content as *"untracked files". I tried all solutions I found in other posts without being able to solve the problem.

How can I make sure to remove the untracked files from git without deleting them from my hard drive?

Upvotes: 1

Views: 730

Answers (2)

pedrorijo91
pedrorijo91

Reputation: 7845

You should try use a .gitignore file on the root of your git project folder.

here's a nice explanation: https://help.github.com/articles/ignoring-files/

and a collection of commonly useful gitignore files: https://github.com/github/gitignore

Upvotes: 0

ponayz
ponayz

Reputation: 237

create a .gitignore file and add them in it you can learn more here

Upvotes: 1

Related Questions