我已經刪除了我的開發機器中的index.html。我檢查了github中的更改。然後我部署,並將index.html添加到我的公共目錄。爲什麼?!爲什麼我每次部署index.html文件被添加到生產中?
0
A
回答
3
確定這樣的:
git commit -m "comment"
不會從您的git回購刪除文件。
做:
git commit -a -m "comment"
你也可以這樣做:
git rm path/to/file
git commit -m "comment"
+0
謝謝@Francisco Soto – apneadiving
0
,或者你可以做git add -u .
排隊刪除的文件,然後提交
相關問題
- 1. 值被添加到陣列兩次,我不明白爲什麼
- 2. 我在Django生產部署中缺少什麼?
- 3. 爲什麼我的index.html文件不能在目錄中找到?
- 4. 爲什麼我的index.html不能連接到我的index.css文件?
- 5. GWT編譯每次我部署到Appengine
- 6. Bootstrap.css沒有被添加到index.html中
- 7. 爲什麼Heroku看不到我部署後創建的文件?
- 8. 的.gitignore文件中添加「/斌/」每次什麼項目改變
- 9. git +部署到生產
- 10. ClickOnce部署到生產
- 11. Rails 3.爲什麼Capistrano將index.html文件添加到我的公用文件夾中?
- 12. 爲什麼文本被追加幾次
- 13. 爲什麼我無法加載index.html?
- 14. 無法添加負載「部署/資產」我Capistrano的部署
- 15. Rails生產部署文件夾?
- 16. 將文件添加到點擊一次部署
- 17. 爲什麼我的文件沒有被添加
- 18. 爲什麼我的觀察添加被調用每
- 19. VisualStudio爲什麼每次啓動時都會部署庫?
- 20. 什麼文件要部署到Tomcat?
- 21. 爲什麼ApplicationInsights.config文件自動被添加到Github的庫
- 22. 爲什麼鍵值對被添加兩次到狀態?
- 23. 什麼產生DataSet.designer.vb文件
- 24. 類未被添加到NSMutableArray ..爲什麼?
- 25. 爲什麼值不被添加到NSMutableArray?
- 26. 將記錄添加到生產數據庫中並將其部署到VPS後的最佳做法是什麼?
- 27. 爲什麼每次添加應用程序小部件時都會創建AppWidgetProvider?
- 28. 爲什麼我的js文件被加載爲`index.html`而不是由webpack創建的實際js文件?
- 29. 爲什麼我的h3被添加到wordpress的li標籤中?
- 30. XCode:爲什麼我的活動未被添加到日曆中?
你確定從代表移除文件?你用什麼命令來提交? – apneadiving
git add。 | git commit -m'some message'| git push – leonel