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
Source control, Version Comtrol, SCM. SVN

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

1. Generate Key-Pair Windows / Linux / Mac is using same commands. 2. Add your key to the SSH agent Windows Linux / Mac 3. Provide GitHub with your public key Support with multiple user / host via SSH Config…

ตอนนี้มีโจทย์ให้คิดครับ เพราะเท่าที่ย้ายมาใช้ Git มาน่าจะ 3 ปี และจะเจอปัญหานึงประจำเลย มี Branch เปิดลอยๆไว้ ไม่เอามา Merge เข้าเส้นหลัก และไม่ได้ Pull Code ให้ Update ล่าสุดด้วย แล้วมันเอาไปทำอะไร ถามแล้วไม่มีใครรับว่าเป็นเจ้าของอีก ได้เป็นโจทย์เล็กๆ สำหรับมาหาว่า Branch อันนี้ใครสร้างคนแรก เพราะที่ส่องจาก GitLab มันจะมี Event Push ขึ้นมา ดังรูป แต่ก่อนจะใช้งาน API เราต้องเตรียมตัวอะไรบ้างนะ Generate Access Token (API KEY)…

ปกติผมจะไม่ค่อยใช้ 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 >…

After migrate from .NET Core 3.1 > .NET6.0 . When I rebuilding source code for testing via Jenkins (Windows 10 Build Server). The build fails and log say ERROR: Checkout failed hudson.plugins.git.GitException: Command “git.exe checkout -f 72c240e2c46693fd239132b77ae92bc8cfbc5db1” returned status code…