是" git pull"和" git checkout -b"安全运营?

时间:2015-11-08 23:14:08

标签: git

我已经使用git 8个月了,我刚刚遇到一个有趣的问题,未经跟踪的文件似乎在没有任何警告的情况下消失在我身上。这是我的控制台的pastebin:

http://pastebin.com/membm34J

消失的文件是:

  • 的src / API / ConfigurationFileReader.java
  • 的src / API / testConfigPull.java

正如您将看到的,当第一个"状态"打电话。这些文件永远消失了吗?我不知道我做了什么让他们消失。

1 个答案:

答案 0 :(得分:2)

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)

        .gradle/2.6/
        .idea/
        .settings/gradle.prefs
       GameCentricsAWS.iml
       GameCentricsAWS2.iml
       src/                                       *** here ***
       tmpLibs/

Git告诉你整个src /`目录都没有跟踪,其中包含你的文件。