So here’s what happened. I am working on a small software development project and I have a git repository that I work on in VS code. So far so good.
I did some restructuring of the project recently and had a few files with bits of code that are not anymore needed, but I want to keep for reference, in case I need them in the future. I put them in a folder called
dev_int and added a line to my
.gitignore file to make sure these files meant for internal development don’t get published.
I know this is probably not the best way to do this, but it seemed to work and was an easy way to achieve what I needed.
dev_int folder has disappeared with all of its content. Is this expected behaviour? How should I have gone around doing this?
I am working on ubuntu 22.04, git version 2.34.1 and as mentioned doing all this through VS code.