首页 > 解决方案 > Git 尝试暂存 5000 多个文档

问题描述

我在我的计算机上遇到了 github 的问题。它从我在我的 Mac 上安装 brew 开始,我今天还在一个程序文件夹中使用了 git init 以便将它推送到我的仓库,但这是我以前做过的事情。当我运行时git status,这就是我得到的:

On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
.DS_Store
.Trash/
.bash_history
.bash_sessions/
.cache/
.config/
.docker/
.eclipse/
.kube/
.oracle_jre_usage/
.ssh/
.subversion/
.tooling/
.vscode/
Applications/
Desktop/
Documents/
Downloads/
Library/
Movies/
Music/
Pictures/
Public/
eclipse-workspace/
git/
go/
google-cloud-sdk/
mydockerbuild/
mydockerbuild2/

出于某种原因,它试图将我的整个 PC 推送到 github,这使得我的 VS 代码的功能越来越少(没有打开完整的文档等)。对于我使用 git clean -f on 的其他几个文件,它也有这个,但出于明显的原因,我不想删除其中的任何一个。请帮忙!另外,我刚开始使用 git,所以如果我不明确,请放慢我的脚步。

标签: gitstaging

解决方案


推荐阅读