We numerically and analytically analyze transitions between different synchronous states in a network of globally coupled phase oscillators with attractive and repulsive interactions. The elements within the attractive or repulsive group are identical, but natural frequencies of the groups differ. In addition to a synchronous two-cluster state, the system exhibits a solitary state, when a single oscillator leaves the cluster of repulsive elements, as well as partially synchronous quasiperiodic dynamics. We demonstrate how the transitions between these states occur when the repulsion starts to prevail over attraction.PACS numbers: 05.45.Xt Synchronization; coupled oscillators Networks of coupled oscillators are a popular model for many engineered or natural systems. The main effect -emergence of a collective mode via synchronization -is now well-understood and therefore focus of research shifted recently to analysis of different complex states. These states include chimeras, when a population of identical units splits into a synchronous and asynchronous part, quasiperiodic partially synchronous states, characterized by the difference of frequencies of individual units and of the collective mode, and clusters and heteroclinic cycles, to name just a few. Of particular interest are ensembles where some elements have only attractive connections while others have only repulsive ones. This model is motivated by studies of neuronal networks that are built from excitatory and inhibitory neurons. In this paper we analyze how the state of such a setup changes with the interplay of attraction and repulsion. We demonstrate that if the frequency mismatch between attractive and repulsive units is smaller than some critical value then desynchronization occurs via appearance of the solitary state. With the further increase of repulsion the system undergoes a transition to quasiperiodic partial synchrony. In the latter state the attractive units remain synchronized, while the repulsive group settles between synchrony and asynchrony so that the mean fields of both groups remain locked, but the frequency of the repulsive elements is larger than that of their mean field. For a large frequency mismatch of attractive and repulsive groups desynchronization immediately leads to partial synchrony.