Skip to content

Use .gitignore for large files? #32263

Discussion options

You must be logged in to vote

Hi @zlkvet

What you're trying to achieve is certainly possible, however, I wouldn't be able to tell you how to do it precisely without knowing your current folder/file structure and names. Instead you can take a look at this and/or this guide about how the gitignore file works.

As a short example if the file name is foo.tif and the folder name the file is in is called bar you can put bar/foo.tif in your gitignore file and that should ignore the file but not the folder. In case you wanted to ignore all the files ending in .tif in the bar folder you could add bar/*.tif in your gitignore. However, in case you already have the file committed to the repository you might need to delete it from …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zlkvet
Comment options

Answer selected by zlkvet
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants