简体   繁体   English

git status 在分支 master 初始提交显示未跟踪的文件:

[英]git status On branch master Initial commit shows Untracked files:

On branch master , I see:在分支master ,我看到:

Initial commit初始提交

Untracked files: (use "git add ..." to include in what will be committed)未跟踪的文件:(使用“git add ...”包含在将提交的内容中)

.CFUserTextEncoding
.Trash/
.adobe/
.bash_history
.bash_sessions/
.config/
.cups/
.dvdcss/
.gitconfig
.ssh/
.tblive-4/
.viminfo
Applications/
Desktop/
Documents/
Downloads/
Library/
Movies/
Music/
Pictures/
Public/

Nothing added to commit but untracked files present (use " git add " to track)没有添加任何提交但存在未跟踪的文件(使用“ git add ”进行跟踪)

Is this normal?这是正常的吗? Should I see that amount of untracked files?我应该看到那么多未跟踪的文件吗?

You seem to have initialized your git repo in your %USERPROFILE% path, which would include not only your project but all other files/folders of your user account.您似乎已经在%USERPROFILE%路径中初始化了 git 存储库,该路径不仅包括您的项目,还包括您用户帐户的所有其他文件/文件夹。

You need to do a git init only within the root folder of your project.您只需要在项目的根文件夹中执行git init

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM