teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

誤字

2020/02/08 09:15

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -43,7 +43,7 @@
43
43
 
44
44
  が設定されていることを確認しました。
45
45
 
46
- ### ご回答を受けてからの変更点
46
+ ### ご回答を受けてからの変更点とエラー
47
47
 
48
48
  ご回答を受けてHTTPSからSSHへの切り替えをしたところ、pushした時のエラーメッセージが以下のように変わりました。
49
49
 

3

ご回答を受けてからの変更点

2020/02/08 09:15

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -43,5 +43,29 @@
43
43
 
44
44
  が設定されていることを確認しました。
45
45
 
46
+ ### ご回答を受けてからの変更点
47
+
48
+ ご回答を受けてHTTPSからSSHへの切り替えをしたところ、pushした時のエラーメッセージが以下のように変わりました。
49
+
50
+ これは、github側の設定に問題があるということでしょうか。
51
+ ```bash
52
+ $ git remote -v
53
+ origin git@github.com:sample/sample.io.git (fetch)
54
+ origin git@github.com:sample/sample.io.git (push)
55
+ $ git push origin branch-name
56
+ ```
57
+
58
+ エラー文
59
+ ```
60
+ /Users/username/.ssh/config: line 1: Bad configuration option: ---
61
+ /Users/username/.ssh/config: line 10: Bad configuration option: ---
62
+ /Users/username/.ssh/config: terminating, 2 bad configuration options
63
+ fatal: Could not read from remote repository.
64
+
65
+ Please make sure you have the correct access rights
66
+ and the repository exists.
67
+ ```
68
+
69
+
46
70
  ### 補足情報(FW/ツールのバージョンなど)
47
71
  ターミナル バージョン2.10

2

エラーメッセージの修正

2020/02/08 09:12

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -9,7 +9,7 @@
9
9
 
10
10
  ```bash
11
11
  remote: Permission to reponame.git denied to first_accout.
12
- fatal: unable to access 'reponame.git/':
12
+ fatal: unable to access 'https://github.com/sample/sample.github.io.git/':
13
13
  The requested URL returned error: 403
14
14
  ```
15
15
 

1

試したことの文体変更

2020/02/06 15:28

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -36,7 +36,12 @@
36
36
  $ git config --local user.name
37
37
  $ git config --local user.email
38
38
  ```
39
- で、1つめアカウトに何も設定されていないこと、使用した2つめのアカウント`second_account`が設定されていることを確認しました。
39
+ 上記コマドで
40
40
 
41
+ ・`global`には1つめのアカウントに何も設定されていないこと
42
+ ・`local`には使用した2つめのアカウント`second_account`
43
+
44
+ が設定されていることを確認しました。
45
+
41
46
  ### 補足情報(FW/ツールのバージョンなど)
42
47
  ターミナル バージョン2.10