@Priti roy's solution worked for me. The only difference is, I'm using Bitbucket. In the last step (step 3), replace <user_name> with <project_name>, i.e., git remote set-url origin [email protected]:<project_name>/repo.git
git remote set-url origin [email protected]:<project_name>/repo.git