ファイルはgitに存在しますか?

ファイルはgitに存在しますか?

ブロックしなくても同じ問題が発生します。

git rm projects.py私は以下を使用するときを使用しません:

git cp projectsTABTAB

projectsFindFrame.py projectsInsert.py

また、私が使用するとき:

git show a3ea2118bf1c5e2c6aa0974d0b6ff7415bd044ef

projects.py ファイルの内容をブロックしました。

commit a3ea2118bf1c5e2c6aa0974d0b6ff7415bd044ef
Author: Mohsen Pahlevanzadeh <mohsen@debian>
Date:   Wed Oct 9 04:21:14 2013 +0330

    formValidators has been added, all of *_Insert component has been added to Projects() class.

diff --git a/projects.py b/projects.py
new file mode 100644
index 0000000..d76685b
--- /dev/null
+++ b/projects.py
@@ -0,0 +1,303 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+
+from tables import *
+from dbabslayer import *
+from languagecodes import *
+from PyQt4 import QtCore, QtGui
+
+
+try:
+    _fromUtf8 = QtCore.QString.fromUtf8
+except AttributeError:
+    def _fromUtf8(s):
+        return s
+
+try:
+    _encoding = QtGui.QApplication.UnicodeUTF8
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig, _encoding)
+except AttributeError:
+    def _translate(context, text, disambig):
+        return QtGui.QApplication.translate(context, text, disambig)
+
+
+
+
+class Projects(QtGui.QMainWindow):

私の質問それ:私はなぜそれをすることはできませんかgit cp projects.py?しかしこれは避けられない。

ベストアンサー1

Tab完了結果によると、projects.py現在決済にないようです。または、少なくとも現在のディレクトリにありません。git ls-files | grep projects.pyGitが現在ファイルが存在すると思っているかどうかをチェックアウトで確認したとします。

ファイルが表示されない場合は、ls-filesそのファイルがどのブランチにあるかを調べる必要があります。

どこにいるのか覚えていない場合は、次を使用することをお勧めします。Git GUI過去と現在の木を探索してみてください。一度知ったらいつファイルがすでに存在するため、コピーする場所を知ることができます。~から

おすすめ記事