Hi Chaitanya,
Simply upgrading to Mendix 11 shouldn't make Git operations take hours.
A few things to check:
If the project is very large, retrieving history and committing can naturally take longer, but it shouldn't take hours.
Also, try cloning the project again in a new location.
Kindly mark this as the accepted answer if it helps.