18 พฤศจิกายน 2564

go get private github repo error fatal: could not read Username for 'https://github.com': terminal prompts disabled

 If your Golang repository is using modules from private GitHub, GitLab, bitbucket. 

After running "go mod download" or "go mod tidy", you may see this error

fatal: could not read Username for 'https://github.com': terminal prompts disabled


To fix the error above, please follow these steps

1. run export GOPRIVATE=github.com/your-organization/*

2. run git config --global --add url."git@github.com:".insteadOf "https://github.com/"


Verify result

1. run echo $GOPRIVATE to verify GOPRIVATE variable

2. run cat ~/.gitconfig to verify git config


1 ความคิดเห็น:

  1. ไม่ระบุชื่อ22 ธันวาคม, 2564 13:13

    I want to testify about TD Ameritrade who helped me invest my bitcoin and made me who I am today, I never believe in investing in bitcoin until I met TD Ameritrade. I saw so many testimonies about him helping people to invest their bitcoin. I decide to contact him and invested $500 and, after 72 hours, I get my $ 5,000 profit in my bitcoin wallet. Since I invested with them and I always receive my profit without delay, so if you want to invest your bitcoin, TD Ameritrade is the best deal with which you can invest and make profit is a guarantee. So, if you want to invest, just contact him and he will guide you on how to start your investment. whatsapp +447883246472
    Email: tdameritrade077@gmail.com

    ตอบลบ

บทความยอดนิยม (ล่าสุด)

บทความยอดนิยม (1 ปีย้อนหลัง)