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

質問編集履歴

2

個人情報を無くしました

2020/01/06 12:42

投稿

yuta_kg
yuta_kg

スコア24

title CHANGED
File without changes
body CHANGED
@@ -1,11 +1,11 @@
1
1
  GithubでWordのバージョン管理をしています。
2
2
  特定のwordファイルだけ、以前のコミットまで戻したいのですが、以下のエラーが出ます。
3
3
  ```
4
- (base) kogayuutanoAir:修論 kogayuuta$ git checkout d724ac10dec21c12f100b0323ecb386590139d4c 修士論文/H31_古賀悠太_修士論文01 .docx
4
+ (base) kogayuutanoAir:AB kogayuuta$ git checkout d724ac10dec21c12f100b0323ecb386590139d4c ABCD/hogehoge01 .docx
5
- error: pathspec '修士論文/H31_古賀悠太_修士論文01' did not match any file(s) known to git
5
+ error: pathspec 'ABCD/hogehoge01' did not match any file(s) known to git
6
6
  error: pathspec '.docx' did not match any file(s) known to git
7
7
  ```
8
8
  原因のわかる方回答お願いします。
9
9
 
10
- また、ローカルリポジトリは「修論」で、以下のようなフォルダ構造です。
10
+ また、ローカルリポジトリは「AB」で、以下のようなフォルダ構造です。
11
- 修論/修士論文/H31_古賀悠太_修士論文01 .docx
11
+ AB/ABCD/hogehoge01 .docx

1

タイトルの具体性

2020/01/06 12:42

投稿

yuta_kg
yuta_kg

スコア24

title CHANGED
@@ -1,1 +1,1 @@
1
- 特定のファイルだけ、あるコミットま戻したい
1
+ git checkout [commidId] [filepath]エラーが生じる
body CHANGED
File without changes