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

質問編集履歴

1

説明の詳細追加

2016/11/18 11:50

投稿

asn
asn

スコア20

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