mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 23:28:02 +00:00
Add Excluding Files Locally as a git til.
This commit is contained in:
@@ -32,6 +32,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
- [Clean Out All Local Branches](git/clean-out-all-local-branches.md)
|
- [Clean Out All Local Branches](git/clean-out-all-local-branches.md)
|
||||||
- [Delete All Untracked Files](git/delete-all-untracked-files.md)
|
- [Delete All Untracked Files](git/delete-all-untracked-files.md)
|
||||||
- [Dry Runs in Git](git/dry-runs-in-git.md)
|
- [Dry Runs in Git](git/dry-runs-in-git.md)
|
||||||
|
- [Excluding Files Locally](git/excluding-files-locally.md)
|
||||||
- [Ignore Changes To A Tracked File](git/ignore-changes-to-a-tracked-file.md)
|
- [Ignore Changes To A Tracked File](git/ignore-changes-to-a-tracked-file.md)
|
||||||
- [Intent To Add](git/intent-to-add.md)
|
- [Intent To Add](git/intent-to-add.md)
|
||||||
- [Last Commit A File Appeared In](git/last-commit-a-file-appeared-in.md)
|
- [Last Commit A File Appeared In](git/last-commit-a-file-appeared-in.md)
|
||||||
|
|||||||
12
git/excluding-files-locally.md
Normal file
12
git/excluding-files-locally.md
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# Excluding Files Locally
|
||||||
|
|
||||||
|
Excluding (read: ignoring) files that should not be tracked is generally
|
||||||
|
done by listing such files in a tracked `.gitignore` file. Though it doesn't
|
||||||
|
make sense to list all kinds of excluded files here. For files that you'd
|
||||||
|
like to exclude that are temporary or are specific to your local
|
||||||
|
environment, there is another option. These files can be added to the
|
||||||
|
`.git/info/exclude` file as a way of ignoring them locally.
|
||||||
|
|
||||||
|
Add specific files or patterns as needed to that file and then save it.
|
||||||
|
Relevant files will no longer show up as untracked files when you `git
|
||||||
|
status`.
|
||||||
Reference in New Issue
Block a user