Skip to content

Git meminta username dan password untuk beberapa repo #31

Closed Answered by ditatompel
viechoco asked this question in Q&A
Discussion options

You must be logged in to vote

Kemungkinan itu karena remote repositori di clone dari HTTPS, bukan GIT. Coba cek dari repositori yang selalu minta username pake perintah git remote -v.

Contoh output git remote -v yang menggunakan HTTPS:

origin	https://github.com/ditatompel/insights.git (fetch)
origin	https://github.com/ditatompel/insights.git (push)

Contoh output git remote -v yang menggunakan SSH:

origin	git@github.com/ditatompel/insights.git (fetch)
origin	git@github.com/ditatompel/insights.git (push)

Remote URL bisa dirubah menggunakan perintah git remote set-url. Misal:

git remote set-url origin git@github.com:ditatompel/insights.git

Jd tinggal dirubah bagian https://github.com ke git@github.com atau vice versa.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@viechoco
Comment options

Answer selected by viechoco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants