I had to change the account that was being used to perform git pull and git tag on a branch in a repo. For that I updated user.email, user.name and remote.origin.url git global config settings. Here is how I did it:
Since doing that even though I am able to pull code but tagging branch is giving me below error:
Password for 'https://new-user-id@bitbucket.org':
[exec] remote: Your credentials lack one or more required privilege scopes.
[exec] fatal: unable to access 'https://new-user-id@bitbucket.org/<path>/<repo>.git/': The requested URL returned error: 403
[exec] Result: 128Its an EC2 server instance where I am performing these git operations.