Added to gitignore
!/rootfolder/js /rootfolder/js/* !/rootfolder/js/some.sale /rootfolder/js/some.sale/* !/rootfolder/js/some.sale/some_sale.js and pushed on master
Now go to the old branch created from the wizard before this commit (git checkout oldbranch) then if you go through ftp, you will see that this file /rootfolder/js/some.sale/some_sale.js is missing. If you create a new branch from this wizard, then in ftp will show this file. How to fix it I can not understand. I understand that the old gitignore branches do not contain these changes, and this file was added to the repo, but since in the old gitignore branches there is such a record above /rootfolder/* then it turns out that it ignores this file from the repo and does not show it on ftp. I recently started using git. I would be happy to help. I cannot update the branch from the wizard.
git checkout репа/имя_ветки -- путь_к_файлуmost likely,git checkout коммитХэш -- путь_к_файлуwill work the same way - if you need to tear out a file from another git object - strangeqargo