本地直接删除文件后,git到远程仓库,为什么不会同步删除对应文件
我想大声告诉你
我想大声告诉你 2017-05-02 09:22:42
0
4
646

本地直接删除文件后,git到远程仓库,为什么不会同步删除对应文件

我想大声告诉你
我想大声告诉你

reply all(4)
滿天的星座

Resolved

git add -A

It can stage all files, and it was used before

git add .

Only new files and modified files can be staged, no deleted files

黄舟

When you git upload, take a look at yourself

There should be some unuploaded marks

If you want to upload delete (upload all)
git add --all

Upload and delete if you want
Baidu by yourself

曾经蜡笔没有小新

Commit the changes before pushing

小葫芦

I feel like you didn’t commit into the repository
It is recommended to use the command git add -A然后使用命令git commit -m "del" 再然后要使用 git push in the project root directory to push to the remote server

It is recommended to use the git status command again after each add to check whether it has been staged

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!