The following problem has been resolved on my local machine:
A. First, make sure you use the correct login information to connect to Bitbucket Server (i.e. username / password / SSH key that belongs to you)
B. Then, make sure that the name / email address is correctly set in your local Git configuration: Set the local Git configuration for the account you are trying to click under (verification confirms that you are the person who committed the files) * Please note that it is case sensitive for both the name and email address * It is also case sensitive - some company accounts have extra spaces / characters in their name, for example. " Contractor/space space(LDN) ". You must include the same number of spaces in your configuration as on Bitbucket Server. Check it in a notebook if stuck.
C. If you used the wrong account, just change your account credentials (username / password / SSH key) and try again.
D. Otherwise, if your local configuration is incorrect, you will need to change it
For MAC
open -a TextEdit.app ~/.gitconfig
NOTE. You will have to fix the old commits that you tried to push.
Change your last commit:
> git commit --amend --reset-author <save and quit the commit file text editor that opens, if Vim then :wq to save and quit>
Try repeating your commits:
> git push
Maverick09 Sep 26 '17 at 13:01 on 2017-09-26 13:01
source share