Deductions & credits

Can you provide more details on how to claim the deduction or credit when the repayment happened in the same year, when the employer wouldn't make the adjustment? I paid back the signing bonus in April this year, which I received in February this year. The employer just kept refusing to adjust the paystub/the coming W2 to reflect the repayment.