How to fix current branch xxx has no upstream branch.
When you create a new branch and trying to push the new commit then you will be seeing this error How to fix current branch xxx has no upstream branch. Reference
When you create a new branch and trying to push the new commit then you will be seeing this error How to fix current branch xxx has no upstream branch. Reference
My colleague has issue with the Jenkins. Jenkins Cannot connect to GitLab Repository, but GitLab User jenkins have permission to read this repository. The error below here!! Solution Reference
Fixed Reference
พอดีมีทำ Automate Task ใน Jenkins เพื่อลดภาระให้มันช่วง Generate Script แล้ว commit & push กลับไป พอทำเสร็จลองรันใน Jenkins โดน error ตบกลับมาเลย 555 สำหรับตัว Error src refspec master does not match any มันบอกว่าหา Reference ไม่เจอเลย เช่น เรา push เข้า remote branch master แต่เรายังไม่ได้สร้าง branch…
1. Generate Key-Pair Windows / Linux / Mac is using same commands. Add your key to the SSH agent Windows Linux / Mac Provide GitHub with your public key Support with multiple user / host via SSH Config if you…
ปกติผมจะไม่ค่อยใช้ Command เลย นอกจากเขียนพวก Script ต่างๆ จะไป Google / Chat GPT เอาครับ คราวนี้มาลองสรุป Git แบบ Command กันครับว่ามีอะไรบ้าง git init git config git add git rm git status git commit git reset git remote git push git clone git fetch /…
วันนี้ผมมาแชร์ Tips สำหรับคนที่ใช้ GitLab เวลาที่เราจะส่ง Merge Request ใครคนอื่นดูเนี่ย เรามี Pattern ในการใส่ Description ยังไงกันนะ ยิ่งคนเยอะๆจะบริหารกันยังไง วันนี้ผมเลยมาแชร์ Feature Description templates ที่จะมาช่วยตอบโจทย์ตรงนี้ครับ ซึ่ง Feature นี้จะมาช่วย สำหรับขั้นตอนการใช้ สามารถทำได้ ดังนี้ เมื่อลองใช้งานจริง เวลาส่ง Merge Request จะแสดงผลดังรูป และทำตาม Check List เสร็จ เวลากดจะมี Log ขึ้นมาด้วยนะครับ ถ้ามีหลาย Template เพิ่มตัวไฟล์…
หลังจากย้ายจาก SVN > GitLab 3 ปีกว่าเนี่ย ปัญหาสำคัญอย่างนึงที่เจอประจำ การตั้งชื่อ Branch ซึ่งมันมีข้อตกลงนะ ล่าสุดตามนี้เลย สำหรับ flow และชื่อ Branch หากใครอ่าน Blog [GIT] แบ่งปัน Git Flow ที่ได้ใช้งานจริง มาก่อนอาจจะไม่เหมือนนะครับ มีปรับใหญ่ไปรอบนึงครับ ถ้าครบ 1 ปี จะมาแชร์ใหม่อีกรอบครับ ปัญหา ช่วงหลังๆ ชื่อ Branch เริ่มแปลกขึ้น เช่น แล้วที่นี่พอผ่านไปนานๆ ใครเจ้าของ Branch แล้วมันทำเพื่ออะไร ? Git…
When change OS user to run a Jenkins. I found am error when clone source code to workspace directory Error Message Solution Clear Old File and Folder which create by another user on Jenkins Job’s “Configure” Source Code Management >…
หลังจากปิดตัว SonarQube เดิมไป แล้วที่นี้ลอง Setup Version เวอร์ชัน LTS 8.9.9 ล่าสุดไป เมื่อลองใน Jenkins Build และส่งข้อมูลไป ผมแอบสังเกตุว่า ตัวเลขมันดีขึ้นแบบแปลกๆ แต่ Dev ยังไม่ได้ปรับปรุง Code อะไรเพิ่มนะ พอลองมาไล่ดูแล้ว เจอปัญหาจริงๆครับ โดยปัญหา คือ SonarQube ถ้าเอา Project ที่ git ที่มี Sub-Module ขึ้นไป มันจะสแกนเฉพาะตัว Super-Module ไม่สนใจ Sub-Module Solution