我有一个问题:当我git status
从一个目录运行时,它会列出该目录的许多文件,因为../../../file
这实际上是我当前目录中没有任何父文件夹前缀的文件。
存储库位于 D:/.git 中,我当前的目录是/d/anurag/work/sources/webhosting/gij-sync-scripts
并且我使用 git-bash 命令 shell。我的是 git 1.8.3.msysgit.o 版本。
我从来没有以这种方式添加文件。这可能是什么原因造成的?
这是我正在粘贴的文本版本(如上图所示):
> D14@D14-PC /d/anurag/work/sources/webhosting/gij-sync-scripts (master)
> $ git commit
> # On branch master
> # Changes not staged for commit:
> # (use "git add <file>..." to update what will be committed)
> # (use "git checkout -- <file>..." to discard changes in working directory)
> #
> # modified: ../../../../../Anurag/work/sources/webhosting/gij-sync-scripts/copy-site-files.pl
> # modified: ../../../../../Anurag/work/sources/webhosting/gij-sync-scripts/local-common.pl
> # modified: backup-gij.pl
> # modified: backup-joi.pl
> # modified: backup-nav.pl
> # modified: backupall.sh
> # modified: restoreall.sh
> #
> # Untracked files:
> # (use "git add <file>..." to include in what will be committed)
> #
> # ../../../../../.gitignore
> # ../../../../../5632_20269334_MVM_7.tmp
> # ../../../../../Anurag/work/admissioncourses.com/
> # ../../../../../Anurag/work/govtjobsindia/
> # ../../../../../Anurag/work/indiadiscountoffers.com/
> # ../../../../../Anurag/work/jobsopeningindia.com/
> # ../../../../../Anurag/work/sources/bookrailticket/.buildpath
> # ../../../../../Anurag/work/sources/bookrailticket/.cvsignore
我运行此命令的当前目录是 /d/anurag/work/sources/webhosting/gij-sync-scripts
并包含这些修改过的文件(如我的 Windows 7 资源管理器中所示(使用 TortoiseGit):