git init
git remote add origin https://gitlab.com/user/project.git
git add .
git commit -m “Initial commit”
git push -u origin main
แต่ขึ้น
error: failed to push some refs to ‘https://gitlab.com/user/project.git’ ตอน Push
แก้ไขโดย
git push origin master
แค่นี้ก็สามารถ Push ได้แล้ว