I have two branches :
- master
- feature-x
In the project, I have a temp
folder.
This folder is in .gitignore
While being in master
, I created a file hamburger.txt
inside the temp
folder.
Then I switched branch for feature-x
.
The file hamburger.txt
disappeared.
Then I switch back to master
. The hamburger has disappeared definitely.
Why ? How can I get it back ?
I thought the files / folders in .gitignore
were completely ignored by git. How switching branch could make the file disappear ?