私はUbuntu 18.0.4
VM を持っており、gitlab で作成したコードを git にプッシュしたいと考えていました。
すでにやったこと
- gitをインストールする
- sshキーを作成しました
- SSHキーをgitlabに追加しました
- Gitlabでリポジトリを作成する
- git 初期化
- git リモート追加 origin the_git_link
- git を追加します。
- sudo git commit -m "メッセージ"
私が行き詰まったもの
- sudo git プッシュ origin マスター
Ubuntuターミナルからのエラーメッセージ
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.