Özel bir depo oluşturdum ancak terminalden ona aktaramıyorum [kopya]

Aug 19 2020

Ubuntu terminalimde bir proje oluşturdum. Sonra yaptım

git init
git add .
git commit -m "fc"

Daha sonra github'da ÖZEL bir depo oluşturdum.

En sonunda,

~$ git remote add github.com/my-user-name/XXXXXXX.git ~$ git push -u origin master

Ama bu hatayı alıyorum

fatal: 'github.com/my-user-name/XXXXXXX.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Bu bilgisayarla SSH kurdum.

Yardım için teşekkürler.

Yanıtlar

1 wjandrea Aug 19 2020 at 10:14

Protokolü https://veya gibi belirtmeniz gerekir git://. Protokol olmadan, URL bilgisayarınızdaki muhtemelen mevcut olmayan bir dosyaya atıfta bulunur.

Yani mesela,

git remote add origin https://github.com/my-user-name/XXXXXXX.git