First time Version Controlling, I’m using Bitbucket and SourceTree on Windows.
I created a new project, cloned it as a new repository, committed the changes. Then, I tried to gitignore the “Library” folder (since I’ve read I should) by using this:
Here’s where I think I did something wrong:
I went to the project folder [User/Documents/MyProject] and created a text document named “.gitignore” with the content above. Having done that, I went back to SourceTree and committed the change.
Now, by doing that, should I expect the metadata files to get ignored? because they didn’t. Actually, it had no effect on the repository. I tried different versions of “.gitignore” but all handed the same results. So my question is:
TL;DR: What is the correct way to .gitignore?