GIT Training: How to Remove Unwanted Files Using GIT


show more Removing untracked files provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training show less
please wait ...

Removing untracked files

To finish up our discussion of how we can undo changes that we've made, I want to look at a relatively simple one which is how we can remove untracked files from our working directory. The idea is that if we have a lot of files that have been added to our working directory that are not tracked that we don't want, we just want to get rid of them, is there an easy way that we can do that? We certainly could go through and just delete them one by one, but Git gives us a quick and easy way to just tell all those files that should be thrown away. So specially if you have things like log files, zipped directories, compiled code, things like that that you don't want in your Repo, and you'd like to get them out of your working directory too.

We can get rid all of those by using the git clean command. Let's start by just creating some simple files. So we'll go into TextMate, and let's just make a new file, put Junk in it, and we'll save it, and we'll call it junk1, we'...

Removing untracked files
Video duration: 3m 3s 6h 25m Beginner

Viewers:

Removing untracked files provides you with in-depth training on Developer. Taught by Kevin Skoglund as part of the Git Essential Training

Subject:
Developer
Software:
Git GitHub
Author:
please wait ...