Click on the File Menu of Android Studio -> Settings -> Expand Version Control. Inside Version Control, select Git & Check Use Credential Helper