Taxes coming from France / Double taxation / Taxation treaties

Hello,

for the most of the year 2022 I have been and I will be living in France (border region with France, close to Geneva) -> lets say 9 months. In the last 3 months of 2022 I plan on moving to Zurich to reside and work there. By chance, do you know how double taxation works in this case? I have been residing most of the year in France so I will be declaring my taxes in France for what I have earned here in France. But should I also include and tax in France everything I will earn for the last 3 months in Switzerland (living and working there) as I am a tax residant of France because of living there for most of the year? How does it work? Do I tax everything twice for the last few months, both countries making tax claims from my salary? Do I only tax it in France or only in Switzerland? What is the general idea? I found double taxation treaties but my German nor French is unfortunately good enough to get any meaningful picture out of the law talk.

Thank you very much for your Time

"Vorbehältlich der Artikel 18 bis 21 können Gehälter, Löhne und ähnliche Vergütungen, die eine in einem Vertragsstaat ansässige Person aus unselbständiger Arbeit bezieht, nur in diesem Staat besteuert werden, es sei denn, dass die Arbeit in dem anderen Vertragsstaat ausgeübt wird. Wird die Arbeit dort ausgeübt, so können die dafür bezogenen Vergütungen in dem anderen Staat besteuert werden."

=> generally salary is going to be only taxable in the state you earned it, i.e FR salary in FR, CH salary in CH. But some exceptions apply... esp if you worked for FR employer from CH or vice versa

Doesn't FR just like CH split the tax year for the year of arrival and departure? I would think they would have no business knowing about and taxing income from non-resident part of the year. But even if they do (e.g. you didn't properly deregister and become dual tax resident in both), then the treaty's clause above about salaries being taxed only in the country you earned them should apply

You will also become a swiss tax resident if you take up employment/residency in CH and register here, no matter how many days in a year you spent where