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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay