我希望 git 跟蹤一個檔案,該檔案site.db當前未跟蹤,因為我跑了git rm --cached site.db
自從運行該命令后,我對該檔案進行了一些更改,我想將其推送到遠程存盤庫。
我怎樣才能做到這一點?
當我運行時git status,它回傳:
git status
On branch master
Your branch and 'origin/master' have diverged,
and have 52 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
deleted: denise/site.db```
I'm worried that if I `push` then `denise/site.db` will be deleted, when I actually want to push it!
uj5u.com熱心網友回復:
如果你執行該檔案的 git add 它應該讀取它
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/378016.html
