質問編集履歴

1

説明の詳細追加

2016/11/18 11:50

投稿

asn
asn

スコア20

test CHANGED
File without changes
test CHANGED
@@ -5,3 +5,83 @@
5
5
  尚、githubにもpushしているので、そのあたりも含め、初期状態にする方法と教えていただければと思います。
6
6
 
7
7
  宜しくお願いします。
8
+
9
+
10
+
11
+ 詳細について。
12
+
13
+ 1.目的はgithub pagesでサイトを公開。
14
+
15
+ 2.このため、githubでリポジトリ作成。
16
+
17
+ 3.ssh公開鍵を登録
18
+
19
+ 4.ローカル側(Mac)でgit init
20
+
21
+ 5.フォルダをgithub上のリポジトリに紐付け
22
+
23
+ $ git remote add origin .....github.io.git
24
+
25
+ 6.commiとpush実施
26
+
27
+ $ git add .
28
+
29
+ $ git commit -m "first commit"
30
+
31
+ $ git push origin master
32
+
33
+ 7.作成物は、index.htmlとcssと画像のみ。
34
+
35
+ 8.アップロードは出来、github pagesで表示も正しくできた。
36
+
37
+ 9.なお、開発作業はgitとは別のフォルダ下で行っていた。
38
+
39
+ github pagesにアップあうるため、新たにフォルダを作成し、git initした次第。
40
+
41
+ 10.その流れもあって、cssの誤りを作業フォルダ下のソースで行っていた。
42
+
43
+ 11.修正版をgitに反映する際、git管理下のソースを削除し、作業フォルダのソースを移送。
44
+
45
+ 12.その後、add . と commitをしたところ、エラーが発生。
46
+
47
+ エラー内容はよく把握できていません。
48
+
49
+ 13.pushしたが、github pagesにcssが全く反映されていない状況。
50
+
51
+ 14.ただし、リポジトリは修正版が登録されている模様。
52
+
53
+ 15.git reset --hard 実施後、再度、add とcommitをしなおしたが、状況変わらず。
54
+
55
+ 16.なお、再度、git下のソースを修正し、addとcommitしたが、以下のメッセージあり。
56
+
57
+ Your name and email address were configured automatically based
58
+
59
+ on your username and hostname. Please check that they are accurate.
60
+
61
+ You can suppress this message by setting them explicitly. Run the
62
+
63
+ following command and follow the instructions in your editor to edit
64
+
65
+ your configuration file:
66
+
67
+
68
+
69
+ git config --global --edit
70
+
71
+
72
+
73
+ After doing this, you may fix the identity used for this commit with:
74
+
75
+
76
+
77
+ git commit --amend --reset-author
78
+
79
+ 17.「12.」でも出ていたような気がします。
80
+
81
+
82
+
83
+ 原因と対処が知りたいのですが、時間的なこともあり、また、ソースは別フォルダにあるので、一旦、すべて無かったもの、「4.」を行う前の状態にできればと思い、投稿させていただきました。
84
+
85
+
86
+
87
+ 長文となりすみませんが、以上です。