Tuesday, September 1, 2020

Configure bitbucket access from old user url (https://olduser@bitbucket.org) to new user url (https://newuser@bitbucket.org)

 From bitbucket  to server if another user url already configured('https://olduser@bitbucket.org) and password asking or if not working to configure our own current user bit buket url('https://newuser@bitbucket.org) please follow the below methods:

Goto project repository:

step1:  root@ip-100-00-00-100:~# cd /var/www/html/mf_external_api/

step2:  cd .git (Example: root@ip-100-00-00-100:~# cd /var/www/html/mf_external_api# cd .git)

step3:  ls

step4:  vi config (Ex: root@ip-100-00-00-100:/var/www/html/mf_external_api/.git# vi config)

step5:  press "i" for  edit

step6:  change the "url https://newuser@bitbucket.org"

step7: press "esc" button

step8: press ":wq" used for save and write.

step9: root@ip-172-31-12-217:/var/www/html/mf_external_api/.git# cd ..

step10: then normal steps like bitbucket to server:

        git fetch

password

git stash

git rebase origin/master

git stash pop

No comments:

Post a Comment