简体   繁体   English

Git 无法正常工作,无需提交(创建/复制文件并使用“git add”进行跟踪)

[英]Git not working properly nothing to commit (create/copy files and use “git add” to track)

I just created a new local repository and when I tried to commit I got the following response我刚刚创建了一个新的本地存储库,当我尝试提交时,我得到了以下响应

 On branch master
 Initial commit
 nothing to commit (create/copy files and use "git add" to track)

The problem is that I do have files on the directory so I don't understand what is happening here.问题是我在目录上确实有文件,所以我不明白这里发生了什么。 I had never got that error.我从来没有遇到过这个错误。

Ps.附言。 The same message is displayed when I use git status .当我使用git status时,会显示相同的消息。

I just created a new local repository and when I tried to commit I got the following response我刚刚创建了一个新的本地存储库,当我尝试提交时,我得到了以下响应

 On branch master
 Initial commit
 nothing to commit (create/copy files and use "git add" to track)

The problem is that I do have files on the directory so I don't understand what is happening here.问题是我在目录上确实有文件,所以我不明白这里发生了什么。 I had never got that error.我从来没有遇到过这个错误。

Ps.附言。 The same message is displayed when I use git status .当我使用git status时,会显示相同的消息。

暂无
暂无

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

相关问题 在 Branch master git status 上没有显示要提交的内容(创建/复制文件并使用“git add”进行跟踪) - On Branch master git status is showing nothing to commit (create/copy files and use "git add" to track) npm-debug.log位于.gitignore文件中,但我仍然收到消息“没有添加任何内容来提交但存在未跟踪的文件(使用” git add”进行跟踪)” - npm-debug.log is in .gitignore file, but I still get the messsage “nothing added to commit but untracked files present (use ”git add“ to track)” git 添加。 -> 新文件仍然“没有什么可提交的” - git add . -> still "nothing to commit" with new files Git不添加文件(无需提交) - Git does not add files (nothing to commit) 如何使用git add或git lfs跟踪大量文件 - How to use git add or git lfs track A LOT of files Xcode和Git源代码控制:“工作副本XXXXX无法提交文件” - Xcode and Git Source Control : “The working copy XXXXX failed to commit files” Xcode和Git源代码控制:“工作副本XXXXX无法提交文件” - Xcode and Git Source Control : “The working copy XXXXX failed to commit files” Git:没有添加任何提交但存在未跟踪的文件 - Git:nothing added to commit but untracked files present 即使没有任何提交,Git也会推送所有文件 - Git pushes all files even if nothing to commit 使用Git跟踪文件是否有用,如果不提交它们? - Is it useful to track files with Git if not about to commit them?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM