![](/img/trans.png)
[英]Why I can't add this remote GitHub repository to my local GIT repository as remote?
[英]Why I can't add nothing to my repository on github? Untracked files
我有未跟蹤文件的問題。
在分支主服務器上您的分支是最新的'origin / master'。 未跟蹤的文件:(使用“ git add ...”
包括在將
.metadata /
測試/
沒有添加任何內容提交但存在未跟蹤的文件(使用“ git add”進行跟蹤)
我在任何地方都在尋找答案,但沒有找到任何東西。 我訪問了以下主題:
當上游存在更改時,為什么git status顯示分支是最新的?
我無法提交(您的分支使用“起源/主”是最新的)
為什么我不能承諾? (您的分支是最新的“來源/主”,未添加任何更改以提交)
一無所有...有人可以幫助我嗎?
問候。
dp
Add
未跟蹤的文件,然后stash
更改。
$ git add .
$ git stash
如果您的本地沒有重大變化,請使用remote/master
重置local/master
remote/master
$ git fetch
$ git reset --hard origin/master
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.