Git 我能';不要把我所有的文件都推到bitbucket
我正在尝试将本地存储库推送到bitbucket,它显示了以下内容Git 我能';不要把我所有的文件都推到bitbucket,git,bitbucket,Git,Bitbucket,我正在尝试将本地存储库推送到bitbucket,它显示了以下内容 Counting objects: 268, done. Delta compression using up to 4 threads. Compressing objects: 100% (231/231), done. Writing objects: 100% (268/268), 199.12 KiB | 0 bytes/s, done. Total 268 (delta 89), reused 0 (delta 0)
Counting objects: 268, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (231/231), done.
Writing objects: 100% (268/268), 199.12 KiB | 0 bytes/s, done.
Total 268 (delta 89), reused 0 (delta 0)
To https://bitbucket.org/userName/repoName.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
当我检查bitbucket中的文件时,并不是所有的文件都被推送,我的repo大小大约为200MB,而bitbucket上的文件只有250+KB
我尝试使用git push-u origin master
和git push
再次推送,结果是:
Branch master set up to track remote branch master from origin.
Everything up-to-date
您知道是什么原因导致了这个问题吗?尝试使用
git update-index --really-refresh
git add .
git push
这将确保添加并检查所有文件以进行更新。您是否确实添加了Bitbucket中缺少的文件?@TimBiegeleisen否,我是否需要逐个文件添加它们?因为有数百个文件!您确实需要添加所有这些内容,也许下面的答案会对您有所帮助。它不起作用,它向我显示所有内容都是最新的运行
git status
,并更新您的问题,向我们显示它所说的内容。您是否有任何未跟踪的文件或文件夹?能否指出bitbucket中缺少的任何文件。从您的问题中我可以得到的是,您正在将代码的大小与本地存储库文件夹进行比较。这是完全正确的,因为本地存储库包含除实际代码之外的许多其他对象