ls -t1
This will list all files ordered by access time
head -n 5
list the latest 5 files in the directory
ls -t1
This will list all files ordered by access time
head -n 5
list the latest 5 files in the directory
Git lets you ignore those files by assuming they are unchanged. This is done by running the
1 |
git update-index --assume-unchanged path/to/file.txt |
command. Once marking a file as such, git will completely ignore any changes on that file; they will not show up when running
1 |
git status |
or
1 |
git diff |
, nor will they ever be committed.
To make git track the file again, simply run
git update-index --no-assume-unchanged path/to/file.txt
.
To make a directory ignored:
After cd
ing into the folder you want to assume is unchanged, you can do either this:
1 |
git ls-files | tr '\n' '\0' | xargs -0 git update-index --assume-unchanged |