Borrowed from Spanish gitano, itself derived from apheresis of older egiptano (“Egyptian”), from the mistaken belief that gypsies originated from Egypt.
Practice speaking and memorizing "gitan" and many other words and sentences in French.