0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

初心者のCコンパイラ作成ログ

Last updated at Posted at 2022-11-25

はじめに

初心者が低レイヤを知りたい人のためのcコンパイラ作成入門をやってる途中で躓いたところの備忘録です。適宜更新します。

目次

githubにpushできない

(2022/11/25編集)
pushコマンドを実行すると以下のエラーが出た。

~9cc$ git push
Please make sure you have the correct access rights and the repository exists.

.sshフォルダに「config」ファイルを作成し、以下をコピペする。

Host github
  HostName github.com
  IdentityFile ~/.ssh/id_rsa
  User git

これでもう一度pushコマンドを試すと、

$ git push -u origin main
Enter passphrase for key '/home/user/.ssh/id_rsa':
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 928 bytes | 928.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:name/9cc.git
 * [new branch]      main -> main
Branch 'main' set up to track remote branch 'main' from 'origin'.

無事成功した。どうやら秘密鍵を「config」ファイルに設定していないからgithubに接続できなかったよう。

参考: https://qiita.com/GakuNaitou/items/81dbbd3ea6211af71648

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?