DEV Community

DoctorIT
DoctorIT

Posted on

1 1

วิธีแก้ไขปัญหา Bitbucket Cloud recently stopped supporting account passwords for Git authentication error

เนื่องจาก bitbucket เปลี่ยนแปลงวิธีการ authen ในการใช้เข้าใช้งาน bitbucket ผ่านโปรแกรม sourcetreee

่อ่านเพิ่มเติม
https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231

วิธีการแก้ไข

Step 1 ต้องไปกำหนดค่า app password บน bitbucket ก่อน

  1. เข้าไปที่เว็บไซต์ bitbucket.org website และ log in
  2. ที่มุมล่างซ้ายให้ คลิกที่รูป Avatar และเลือกเมนู Personal settings
  3. ใต้หัวข้อ Access management เลือกเมนู App Password
  4. คลิกปุ่ม Create App password
  5. กำหนด permission ให้กับ app ว่าทำอะไรได้บ้าง และกดปุ่ม create
  6. อย่าลืมเก็บรหัสผ่านไว้ให้ดี

Step 2 เปลี่ยนแปลงหรือสร้าง Bitbucket Repository ใหม่

กรณีมีอยู่แล้ว
git remote set-url origin https://[Bitbucket_Username]:[App_Password]@bitbucket.org/[Repo_Name].git

กรณีสร้างใหม่
git clone https://[Bitbucket_Username]:[App_Password]@bitbucket.org/[Repo_Name].git

Top comments (0)

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay