質問編集履歴
1
.bash_historyのコミット後の状況を追記増しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
# 補足
|
27
|
+
# 補足1
|
28
28
|
|
29
29
|
エラーの指示の通り.bash_historyのファイルをcommitかstashすれば解決するのかと思いますが、その方法がわかりません。
|
30
30
|
|
@@ -35,3 +35,35 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
尚、リポジトリ管理はBitbucketで行っています。
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
# 補足2
|
42
|
+
|
43
|
+
.bash_historyをコミットしたところ下記の表示が出てきました。
|
44
|
+
|
45
|
+

|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
その後、改めてmasterブランチへ切り替えを試みたところ、下記のエラーが表示されました。
|
50
|
+
|
51
|
+
> fatal: Unable to create '/home/ec2-user/.git/index.lock': File exists.
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
> Another git process seems to be running in this repository, e.g.
|
56
|
+
|
57
|
+
an editor opened by 'git commit'. Please make sure all processes
|
58
|
+
|
59
|
+
are terminated then try again. If it still fails, a git process
|
60
|
+
|
61
|
+
may have crashed in this repository earlier:
|
62
|
+
|
63
|
+
remove the file manually to continue.
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
調べてみたところ下記のページにいきつき、この記事と同じようにindex.lockというファイルは見当たらず、COMMIT_EDITMSGのファイルがあったのでそれは削除しましたが、状況は変わりません。
|
68
|
+
|
69
|
+
[https://qiita.com/yshishido/items/d62430ebf7ad259f5bec](https://qiita.com/yshishido/items/d62430ebf7ad259f5bec)
|