You need not worry as you were only protecting the modesty of a woman.
moreover you were sitting with your girl friend and when the man tried to attack you and your girl friend, you only adapted self defense.
if there is a scuffle and you have caused injury to other person accidentally when you were protecting yourself and the girl, then it is a self defense. Since nothing happened to the opposite party other than a small injury, police will not arrest you and at the most, even if they call you to police station you will get station bail. No need to go to court. Please refer to Section 96 of IPC which i have herewith copied for you:
IPC Section 96. Things done in private defence:
Nothing is an offence, which is done in the exercise of the right of private defence.
Right of private defence cannot be said to be an offence in return. The right of self-defence under Section 96 is not absolute but is clearly qualified by Section 99 which says that the right in no case extends to the inflicting of more harm than it is necessary for the purpose of defence. It is well settled that in a free fight, no right of private defence is available to either party and each individual is responsible for his own acts. While it is true that law does not expect from the person, whose life is placed in danger, to weigh, with nice precision, the extent and the degrees of the force which he employs in his defence, it also does not countenance that the person claiming such a right should resort to force which is out of all proportion to the injuries received or threatened and far in excess of the requirement of the case. The onus of proving the right of private defence is upon the person who wants to plead it. But an accused may be acquitted on the plea of the right of private defence even though he has not specifically pleaded it.
Courts are empowered to exempt in such cases. It must be borne in mind that the burden of proving an exception is on the accused. It is not the law that failure to setup such a defence would foreclose this right to rely on the exception once and for all. It is axiomatic that burden on the accused to prove any fact can be discharged either through defence evidence or even through prosecution evidence by showing a preponderance of probability. It is true that no case of right of private defence of person has been pleaded by the accused not put forth in the cross-examination to the eye-witnesses but it is well settled that if there is a reasonable probability of the accused having acted in exercise of right of private defence, the benefit of such a plea can still be given to them.
The right of private defence, as the name suggests, is an act of defence and not of an offence. Consequently, it cannot be allowed to be used as a shield to justify an aggression. This requires a very careful weighing of the facts and circumstances of each case to decide as to whether the accused had in fact acted under this right. Assumptions without any reasonable basis on the part of the accused about the possibility of an attack do not entitle him to exercise this right. It was held in a case that the distance between the aggressor and the target may have a bearing on the question whether the gesture amounted to assault. No precise yardstick can be provided to fix such a distance, since it depends upon the situation, the weapon used, the background and the degree of the thirst to attack etc.
No worries. Nothing will happen to you.
Hope this helps.